Skip to content

v1.4.0

Latest

Choose a tag to compare

@rosa rosa released this 20 Mar 18:12

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 5

And 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_candidates by @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