diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-04-29 10:35:44 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2016-04-29 10:35:44 +0200 |
commit | 4a446220a67e115c04a2b562dce92981a8e18c78 (patch) | |
tree | ebed03da31d567d358553cc27bef35bf7355eb29 /activejob | |
parent | f0a6cce78eacec932111f726cec95bb1f42a4644 (diff) | |
parent | 1d6f012718b1da186a2aad57e3ed93d668a0545e (diff) | |
download | rails-4a446220a67e115c04a2b562dce92981a8e18c78.tar.gz rails-4a446220a67e115c04a2b562dce92981a8e18c78.tar.bz2 rails-4a446220a67e115c04a2b562dce92981a8e18c78.zip |
Merge pull request #24776 from prathamesh-sonpatki/aj-release-notes
Active Job: Add note about ability to configure adapters on per job basis in CHANGELOG and release notes
Diffstat (limited to 'activejob')
-rw-r--r-- | activejob/CHANGELOG.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/activejob/CHANGELOG.md b/activejob/CHANGELOG.md index e196b86aa0..c56cb5b1fb 100644 --- a/activejob/CHANGELOG.md +++ b/activejob/CHANGELOG.md @@ -80,6 +80,23 @@ *Jeroen van Baarsen* +* Add ability to configure the queue adapter on a per job basis. + + Now different jobs can have different queue adapters without conflicting with + each other. + + Example: + + class EmailJob < ActiveJob::Base + self.queue_adapter = :sidekiq + end + + class ImageProcessingJob < ActiveJob::Base + self.queue_adapter = :delayed_job + end + + *tamird* + * Add an `:only` option to `perform_enqueued_jobs` to filter jobs based on type. |