diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-08-16 18:14:53 +0300 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-08-20 00:20:06 +0300 |
commit | ec2e8f645eded183224420e209420376c63b99bb (patch) | |
tree | 6718896aa7aa95a2218d927b96f8590b06e7a3bb /activestorage/db/migrate | |
parent | 44007c07098a3c633180881cae9285da4622e63f (diff) | |
download | rails-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/db/migrate')
0 files changed, 0 insertions, 0 deletions