Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sidekiq callback instead of internals for graceful shutdown
Happens at the same time as the old code: https://github.com/sidekiq/sidekiq/blob/73c150d0430a8394cadb5cd49218895b113613a0/lib/sidekiq/launcher.rb#L47-L54 but this is less brittle. Sidekiq::CLI is only defined when Sidekiq runs as a standalone process. Since 7.0 it can also run embedded in the web server process, and using this hook allows Iteration to be compatible with mode of operation. The same events are fired here: https://github.com/sidekiq/sidekiq/blob/73c150d0430a8394cadb5cd49218895b113613a0/lib/sidekiq/embedded.rb#L24-L30
- Loading branch information