Reword adapter caveat for perform_enqueued_jobs [ci-skip]

This commit is contained in:
Jonathan Hefner 2023-07-11 12:00:07 -05:00
parent 3f2987403e
commit 705d515ac5
1 changed files with 2 additions and 2 deletions

View File

@ -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?