aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib/active_job/queue_adapters
Commit message (Collapse)AuthorAgeFilesLines
* Allow all ActiveJob assertion helper to accept Proc in their `only` kw:Edouard CHIN2018-11-211-2/+8
| | | | | | | | - That feature is useful to enqueue or assert that jobs got enqueued or performed based on dynamic conditions. We will be able to leverage that feature to fix all ActionMailer assertion helper issue when a Mailer define a custom delivery job (see next commit).
* [ci skip] Fix link to Concurrent::ThreadPoolExecutor docsOrhan Toy2018-10-111-1/+1
|
* ActiveJob Backburner adapter: fix prioritystoodfarback2018-09-071-2/+2
| | | | | | | The priority wasn't being passed from ActiveJob to Backburner, despite priority being supported. This also brings it inline with the docs, which mark Backburner as supporting priorities in the "Backend Features" table: https://api.rubyonrails.org/classes/ActiveJob/QueueAdapters.html
* Allow `:queue` option to `perform_enqueued_jobs`.bogdanvlviv2018-08-201-3/+11
| | | | | | | | | | | | | | | | | | | | If the `:queue` option is specified, then only the job(s) enqueued to a specific queue will be performed. Example: ``` def test_perform_enqueued_jobs_with_queue perform_enqueued_jobs queue: :some_queue do MyJob.set(queue: :some_queue).perform_later(1, 2, 3) # will be performed HelloJob.set(queue: :other_queue).perform_later(1, 2, 3) # will not be performed end assert_performed_jobs 1 end ``` Follow up #33265 [bogdanvlviv & Jeremy Daer]
* perform_or_enqueue instead of enqueue_or_performMohit Natoo2018-08-091-3/+3
|
* Rails guides are now served over httpsPaul McMahon2018-07-241-1/+1
| | | | | http links will be redirected to the https version, but still better to just directly link to the https version.
* Remove support for Qu gem.Alberto Almagro2018-03-191-46/+0
| | | | | | Reasons are that the Qu gem wasn't compatible since Rails 5.1, gem development was stopped in 2014 and maintainers have confirmed its demise. See issue #32273
* [ci skip] Add a space to comment in SidekiqAdapterYoshiyuki Hirano2017-12-141-1/+1
| | | | | * I think it's better to have a leading space after the `#` denoting the start of the comment.
* Improve DelayedJob wrapper loggingJacek Lachowski2017-11-241-0/+4
| | | | | | | | ActiveJob wraps every adapter into its own class, that is later passed into DelayedJob which is responsible for displaying all the logs. This change improves the logging so we can easily trace executed jobs and see meaningful information in the logs.
* Use ssl in guide and comment [ci skip]Yoshiyuki Hirano2017-08-191-1/+1
|
* Add `except` option for ActiveJob::TestHelper methodsposthumanism2017-07-181-2/+8
|
* [Active Job] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-1112-0/+12
|
* Use frozen-string-literal in ActiveJobKir Shatrov2017-07-0912-0/+12
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-0212-12/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-0112-0/+12
|
* Revert #27850 following test breakage (#28427)David Heinemeier Hansson2017-03-151-4/+7
|
* Append skipped jobs to enqueued_jobsAlexander Pauly2017-01-311-7/+3
| | | | | | | | | | Refactored ActiveJob TestAdapter Updated ActiveJob changelog Fixed typo in changelog Fixed formatting issue in changelog
* Add more rubocop rules about whitespacesRafael Mendonça França2016-10-291-1/+1
|
* Added instance variable `@queue` to JobWrapper.InJung Chung2016-08-191-0/+1
| | | | | This will fix issues in [resque-scheduler](https://github.com/resque/resque-scheduler) `#job_to_hash` method, so we can use `#enqueue_delayed_selection`, `#remove_delayed` method in resque-scheduler smoothly.
* normalizes indentation and whitespace across the projectXavier Noria2016-08-062-14/+14
|
* applies new string literal convention in activejob/libXavier Noria2016-08-0611-34/+34
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Fix accessing provider_job_id inside active jobs for sidekiq adapterAzzurrio2016-07-281-1/+1
|
* Fix typo, `of of` -> `of` [ci skip]Jake Worth2016-06-091-1/+1
|
* Active Job: smaller footprint for the dev/test async adapterJeremy Daer2016-02-291-7/+98
| | | | | Use one shared worker pool for all queues with 0-#CPU workers rather than separate pools per queue with 2-10*#CPU workers each.
* [ci skip] Fix enqueuing spelling to maintain consistencyAbhishek Jain2016-02-122-2/+2
|
* Update sucker_punch adapter's descriptionJon Moss2016-01-271-6/+4
| | | | [ci skip]
* Update ActiveJob adapter for sucker_punch 2.0Jon Moss2016-01-271-2/+13
| | | | | | | | This PR includes two changes for 2.0.0: - Breaking API change around `async.perform` --> `perform_async` - New addition of `perform_in`, which now allows end users of the adapter to use the `enqueued_at` public API method.
* monitor is require for SneakersAdapterGaurav Sharma2015-10-061-1/+1
| | | we are using `@monitor = Monitor.new` that inherit from Monitor class, we leave behind this commit https://github.com/rails/rails/commit/cbfc8b36
* Add job priorities to ActiveJobwvengen2015-09-172-4/+4
|
* Initial implementation of ActiveJob AsyncAdapter.Jerry D'Antonio2015-08-251-0/+23
|
* implement `provider_job_id` for `queue_classic`.Yves Senn2015-08-131-2/+6
| | | | | | The latest, currently unreleased, version of queue_classic is required for this to work. See https://github.com/QueueClassic/queue_classic/pull/262 for more details.
* Merge pull request #20064 from kddeisz/qu_provider_job_idRafael Mendonça França2015-05-081-1/+5
|\ | | | | Provide provider_job_id to qu adapter.
| * Provide provider_job_id to qu adapter.Kevin Deisz2015-05-071-1/+5
| | | | | | | | Further work to provide provider_job_id for queue adapters.
* | Refactor sidekiq adapter enqueue and enqueue_at methodsMehmet Emin İNAÇ2015-05-081-6/+2
|/
* Make que report back its job_id to provider_job_idJeroen van Baarsen2015-05-071-2/+6
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Let Sidekiq set provider_job_idJeroen van Baarsen2015-05-071-2/+6
| | | | | | | | | | When a job is added to Sidekiq by ActiveJob, make sure we still can get the original job_id provider by Sidekiq. We do this by adding the sidekiq jid to provider_job_id field on the job object. Partly fixes #18821 Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Get provider_job_id from DelayedJobKevin Deisz2015-05-051-2/+6
| | | | | When queueing with DelayedJob, get the id of the job instance and report it back to ActiveJob as provider_job_id.
* Merge pull request #19498 from chanks/activejob-que-remove-named-queuesRafael Mendonça França2015-05-031-2/+2
|\ | | | | ActiveJob: Stop using Que's named queues.
| * Stop using Que's named queues in its ActiveJob adapter.Chris Hanks2015-03-241-2/+2
| |
* | Add missing error messages for sucker_punch, sneakers and qu activejob ↵Mehmet Emin İNAÇ2015-04-294-4/+4
| | | | | | | | | | | | | | | | | | | | adapters [ci skip] fix error message change raise to use rails conventions fix misspells
* | Pass wrapped class name to Sidekiq for logging purposesMike Perham2015-03-231-7/+9
|/ | | | | | | Sidekiq logs the name of the job class being performed. Because ActiveJob wraps the class, this means every job logs as an AJ::JobWrapper instead of the actual class name. Will help fix mperham/sidekiq#2248
* `ActiveJob::QueueAdapters::*` are no longer singletonsTamir Duberstein2015-03-1111-135/+115
|
* Avoid creating an extra hash on the job test adapterCarlos Antonio da Silva2015-02-241-1/+1
|
* `ActiveJob::QueueAdapters::TestAdapter` is now a singletonTamir Duberstein2015-02-231-26/+26
| | | | | | | | | Since `ActiveJob::TestHelper` globally sets `ActiveJob::Base.queue_adapter` on setup, there is no benefit in instantiating a new `TestAdapter` per tests. The original rationale was to allow parallel tests to run without interference, but since they'd all mutate the global `ActiveJob::Base.queue_adapter`, that was never realized.
* Add an `:only` option to `perform_enqueued_jobs` to filter jobs based onMichael Ryan2015-02-061-13/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | type. This allows specific jobs to be tested, while preventing others from being performed unnecessarily. Example: def test_hello_job assert_performed_jobs 1, only: HelloJob do HelloJob.perform_later('jeremy') LoggingJob.perform_later end end An array may also be specified, to support testing multiple jobs. Example: def test_hello_and_logging_jobs assert_nothing_raised do assert_performed_jobs 2, only: [HelloJob, LoggingJob] do HelloJob.perform_later('jeremy') LoggingJob.perform_later('stewie') RescueJob.perform_later('david') end end end Fixes #18802. Trim space and document :only option.
* ActiveJob testing improvementsCristian Bica2014-12-301-6/+11
| | | | | | | | 1. The :test adapter wasn't going through a full cycle of serialize/deserialize when performing jobs. Now it does 2. Regular AJ tests were not run for the :test adapter. Now they are 3. ActiveJob::TestHelper uses assert_valid_keys but doesn’t requires the file that implements that method. Now it does
* Replace guides.ror.org/v4.2.0 with guides.ror.orgclaudiob2014-12-201-1/+1
| | | | | No need to point links to http://guides.rubyonrails.org/v4.2.0/... now that the Ruby on Rails guides point to 4.2.0.
* added punctuations, and role of queue_adapter module [ci skip]Rishi Jain2014-11-011-2/+2
|
* - Fix error string raised from `enqueue_at`Vipul A M2014-10-221-1/+1
|
* Don't pass retry option to SidekiqAri Pollak2014-10-081-3/+1
| | | | | * This would override whatever default is configured in Sidekiq system-wide, and retry is true by default anyway.