mirror of https://github.com/rails/rails
Reword adapter caveat for perform_enqueued_jobs [ci-skip]
This commit is contained in:
parent
3f2987403e
commit
705d515ac5
|
@ -598,8 +598,8 @@ module ActiveJob
|
||||||
# If the +:at+ option is specified, then only run jobs enqueued to run
|
# If the +:at+ option is specified, then only run jobs enqueued to run
|
||||||
# immediately or before the given time
|
# immediately or before the given time
|
||||||
#
|
#
|
||||||
# If an adapter other than the test adapter is in use, this method just yields.
|
# If queue_adapter_for_test is overridden to return a different adapter,
|
||||||
# See queue_adapter_for_test for more information.
|
# +perform_enqueued_jobs+ will merely execute the block.
|
||||||
def perform_enqueued_jobs(only: nil, except: nil, queue: nil, at: nil, &block)
|
def perform_enqueued_jobs(only: nil, except: nil, queue: nil, at: nil, &block)
|
||||||
return flush_enqueued_jobs(only: only, except: except, queue: queue, at: at) unless block_given?
|
return flush_enqueued_jobs(only: only, except: except, queue: queue, at: at) unless block_given?
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue