seomoz/qless-py — pull request #4 by ansman (2013-05-04 00:10:21+00:00)
Title: Make the worker handle SIGTERM as well as SIGINT

We're using supervisor to start our qless-worker and when stopping something supervisor uses `SIGTERM` but the current worker only listen for `SIGINT` (`KeyboardInterrupt`).

I've added code to listen for `SIGTERM` which simply stops the worker.