aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrathamesh Sonpatki <csonpatki@gmail.com>2016-04-29 00:38:48 +0530
committerPrathamesh Sonpatki <csonpatki@gmail.com>2016-04-29 07:26:26 +0530
commit1d6f012718b1da186a2aad57e3ed93d668a0545e (patch)
tree912daeef6dd0c0742af7dbb9f121c62db75f8300
parent39144740e8564a4e79e54ecfcd7a4fe8556b63e6 (diff)
downloadrails-1d6f012718b1da186a2aad57e3ed93d668a0545e.tar.gz
rails-1d6f012718b1da186a2aad57e3ed93d668a0545e.tar.bz2
rails-1d6f012718b1da186a2aad57e3ed93d668a0545e.zip
Active Job: Add note about ability to configure adapters on per job basis in CHANGELOG and release notes.
[ci skip]
-rw-r--r--activejob/CHANGELOG.md17
-rw-r--r--guides/source/5_0_release_notes.md6
2 files changed, 22 insertions, 1 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.
diff --git a/guides/source/5_0_release_notes.md b/guides/source/5_0_release_notes.md
index 9c07a2f686..408de13161 100644
--- a/guides/source/5_0_release_notes.md
+++ b/guides/source/5_0_release_notes.md
@@ -655,11 +655,15 @@ Please refer to the [Changelog][active-job] for detailed changes.
### Notable changes
-* `ActiveJob::Base.deserialize` delegates to the job class. this allows jobs
+* `ActiveJob::Base.deserialize` delegates to the job class. This allows jobs
to attach arbitrary metadata when they get serialized and read it back when
they get performed.
([Pull Request](https://github.com/rails/rails/pull/18260))
+* Add ability to configure the queue adapter on a per job basis without
+ affecting each other.
+ ([Pull Request](https://github.com/rails/rails/pull/16992))
+
* A generated job now inherits from `app/jobs/application_job.rb` by default.
([Pull Request](https://github.com/rails/rails/pull/19034))