View Source Quantum.RunStrategy.All (Quantum v3.5.3)
Run job on all node of the node list.
If the node list is :cluster
, all nodes of the cluster will be used.
Mix Configuration
config :my_app, MyApp.Scheduler,
jobs: [
# Run on all nodes in cluster
[schedule: "* * * * *", run_strategy: {Quantum.RunStrategy.All, :cluster}],
# Run on all nodes of given list
[schedule: "* * * * *", run_strategy: {Quantum.RunStrategy.All, [:"node@host1", :"node@host2"]}],
]