resque
resque copied to clipboard
Add shutdown hooks
Rails is getting a new feature called Active Job Continuations, which will allow jobs to be interrupted and resumed.
For this to be integrated with Resque, we need to know when a worker is shutting down.
There's a new stopping? method on the Rails queue adapter. Add a shutdown hook to Resque to allow us to implement that method.