diff --git a/lib/resque/worker.rb b/lib/resque/worker.rb index 3b3610862..0e0ffe774 100644 --- a/lib/resque/worker.rb +++ b/lib/resque/worker.rb @@ -517,7 +517,9 @@ def start_heartbeat # Kills the forked child immediately with minimal remorse. The job it # is processing will not be completed. Send the child a TERM signal, - # wait 5 seconds, and then a KILL signal if it has not quit + # wait seconds, and then a KILL signal if it has not quit + # If pre_shutdown_timeout has been set to a positive number, it will allow + # the child that many seconds before sending the aforementioned TERM and KILL. def new_kill_child if @child unless child_already_exited?