method

shutdown

rails latest stable - Class: ActiveJob::QueueAdapters::AsyncAdapter
shutdown(wait: true)
public

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.