Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

_release_resource cleans up killed worker tasks #2636

Merged
merged 1 commit into from Jul 11, 2016

Conversation

bmbouter
Copy link
Member

If a child Celery process is killed, Celery would recover
but the TaskStatus would stay at running forever. This adds
an additional check when the resource lock is removed which
handles cleanup for any worker being killed.

Because the _release_resource is being run, we know the task
itself has exited, yet if the TaskStatus is not at a final state,
the worker certainly errored.

https://pulp.plan.io/issues/1673
fixes #1673

If a child Celery process is killed, Celery would recover
but the TaskStatus would stay at running forever. This adds
an additional check when the resource lock is removed which
handles cleanup for any worker being killed.

Because the _release_resource is being run, we know the task
itself has exited, yet if the TaskStatus is not at a final state,
the worker certainly errored.

https://pulp.plan.io/issues/1673
fixes pulp#1673
@dkliban dkliban self-assigned this Jul 11, 2016
@dkliban dkliban added the LGTM label Jul 11, 2016
@bmbouter bmbouter merged commit c342ebf into pulp:2.9-dev Jul 11, 2016
@bmbouter bmbouter deleted the 1673-Czech-Lager branch July 11, 2016 17:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants