This release includes support for recurring dynamic tasks. Enable by setting this in your queue.yml configuration:
scheduler:
dynamic_tasks_enabled: true
polling_interval: 1 # optional. Interval in seconds to poll for new recurring tasks. Defaults to 5And then, schedule recurring tasks dynamically as:
SolidQueue.schedule_recurring_task(
"my_dynamic_task",
class: "MyJob",
args: [1, 2],
schedule: "every 10 minutes"
)This accepts the same options as the YAML configuration: class, args, command, schedule, queue, priority, and description.
Learn more about this in the README.
What's Changed
- Add index hint for releasing blocked executions by @rosa in #718
- Avoid an unintended FOR UPDATE query execution inside
lock_candidatesby @genya0407 in #720 - docs: improve grammar a little by @G-Rath in #723
- Dynamic scheduled tasks by @cupatea in #553
New Contributors
Full Changelog: v1.3.2...v1.4.0