Skip to content

Conversation

josh-m-sharpe
Copy link

This allows resque scheduler to set the queue correctly for ActiveJobs when resque schedule's YAML configuration does not set the queue. Depends on this resque PR: resque/resque#1713

Copy link
Contributor

@iloveitaly iloveitaly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome addition. Could you make a couple quick tweaks:

  • Add this to the changelog
  • Rebase on master and ensure CI runs
  • Quick documentation change requested

if klass.respond_to?(:scheduled)
klass.scheduled(queue, klass_name, *params)
elsif klass.respond_to?(:perform_later)
klass.set(queue: queue).perform_later(*params)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a one-line comment here about what is code is doing? Even just linking to this PR would be helpful for the future reader.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants