pulp/pulp — pull request #1124 by bmbouter (2014-08-22 18:54:23+00:00)
Title: 1129858 - Adds task state cleanup for celery workers who restart unexpectedly

This code will also run when the resource manager runs, but since the first check is to find the worker and the resource_manager is never in the workers table it will have no effect. This signal is not called with the celerybeat component starts.

normal_shutdown only impacts logging. I could also imagine that we want this kind of cleanup to be logged, but since it's cleaning up after the fact I have it cleanup silently.