collectiveidea/delayed_job — pull request #384 by alexisbernard (2012-04-16 14:24:08+00:00)
Title: Parallelize stop and restart to be faster with many workers

Stoping delayed job via deamons gem is taking ages with many workers, because it sends signal sequentially to each process. In my case, I have 15 workers and have to wait 15 * 20 seconds (timeout duration) to restart all workers.

My solution is to send each signal in their own thread. Thus, restart duration doesn't increase as many as worker count.