I’m trying to create a job with the Quantum library that only runs on a single node, using RunStrategy.Random
. I realize Quantum by itself doesn’t provide a strong guarantee of process uniqueness, but I can live with that. What I’m confused by is the configuration.
Our existing config uses pairs of {schedule-pattern, function}. Similar to the example in the docs:
jobs: [
{"@daily", {Backup, :backup, []}},
]
But the docs on RunStrategy are confusing to me. They have an example like this:
jobs: [
[schedule: "* * * * *", run_strategy: Quantum.RunStrategy.Local],
]
Does this “job” entry define the run strategy for all jobs with a given schedule? Or is example incomplete, and I’m supposed to add a task
entry to the keyword list?
Does anyone have an example config to share where they use Quantum.RunStrategy
?