aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/package.json
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2018-08-16 18:14:53 +0300
committerbogdanvlviv <bogdanvlviv@gmail.com>2018-08-20 00:20:06 +0300
commitec2e8f645eded183224420e209420376c63b99bb (patch)
tree6718896aa7aa95a2218d927b96f8590b06e7a3bb /activestorage/package.json
parent44007c07098a3c633180881cae9285da4622e63f (diff)
downloadrails-ec2e8f645eded183224420e209420376c63b99bb.tar.gz
rails-ec2e8f645eded183224420e209420376c63b99bb.tar.bz2
rails-ec2e8f645eded183224420e209420376c63b99bb.zip
Allow `:queue` option to `perform_enqueued_jobs`.
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]
Diffstat (limited to 'activestorage/package.json')
0 files changed, 0 insertions, 0 deletions