spotify/luigi — pull request #242 by daveFNbuck (2013-12-06 21:01:33+00:00)
Title: Capture sigterm to kill hadoop jobs when worker is terminated

If luigi is killed with a keyboard interrupt while running a hadoop job, that job is killed. The job was not killed if luigi was terminated via the sigterm signal. This captures the sigterm in addition to keyboard interrupts in order to better ensure that map-reduce jobs aren't left running.