Method: ActiveJob::QueueAdapters::AsyncAdapter#shutdown
- Defined in:
- activejob/lib/active_job/queue_adapters/async_adapter.rb
#shutdown(wait: true) ⇒ Object
Gracefully stop processing jobs. Finishes in-progress work and handles any new jobs following the executor’s fallback policy (‘caller_runs`). Waits for termination by default. Pass `wait: false` to continue.
50 51 52 |
# File 'activejob/lib/active_job/queue_adapters/async_adapter.rb', line 50 def shutdown(wait: true) # :nodoc: @scheduler.shutdown wait: wait end |