defunkt/resque — pull request #623 by dylanahsmith (2012-06-22 20:28:53+00:00)
Title: Notify failure backend of processes killed by signals.

Problem:

When the child process running a job is killed by a signal, the failure backend was not getting any notification of this processes failing, so the job wouldn't get retried.

Solution:

The exit status of the process can be used to indicate whether or not the process was terminated by a signal. This was used to detect how the process died, and to notify the failure backend in these cases where it wouldn't be notified by the child process itself through catching exceptions.

The error message for the exception indicates which signal killed the processes.