What's the difference between stoping workers vs 'quiet' them. In the web GUI I see both options but not sure what are the differences.
Also, whenever I stop all workers, do they stop gracefully meaning they are put on queue again or not?
Thanks.
In order to restart a Sidekiq worker, the recommended way is to send SIGTERM, which is the signal sent to a process to request its termination, to the worker process with a pre-defined timeout configured, followed by the spawning of a new process.
It works the same way as the scheduled queue; it contains jobs that have to be executed at a given time in the future. The main difference is that in retries queue, jobs are added by the Sidekiq, and the time when the job should be executed is calculated based on the retries counter.
Sidekiq reads jobs from a Redis queue, using the First In First Out (FIFO) model, to process jobs.
-t
timeout (default: 8 seconds) to stop and push those unfinished jobs back to Redis.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With