When an task worker dies or restarts, work assigned to that worker is cancelled
Description of problem:
When an RQ restarts (or dies) the tasks assigned to that worker get marked as cancelled. The cancelled state is correct, but users who dispatch work don't expect random cancelling of tasks so this isn't a great behavior.
1. Start Pulp system with exactly 1 worker
2. Start a really long sync
3. List the tasks and observe that the task you submitted is in the running state
4. During the sync `kill -9` the worker
5. Start that worker up again
6. List the tasks again and observe that the task you submitted is in the cancelled state
Expected result: That the work you submitted to Pulp doesn't end up in the cancelled state when a worker dies. I expect it to be re-picked up by the worker and be in the running state.
Updated by bmbouter over 8 years ago
- Subject changed from When a worker dies or restarts the tasks assigned to it are not processed to When a worker dies or restarts, work assigned to that worker is cancelled
- Description updated (diff)
- Status changed from ASSIGNED to NEW
- Assignee deleted (
- Priority changed from High to Low
- Severity changed from 3. High to 1. Low
- Version changed from 2.4.0 to 2.6.0
Updated by bmbouter over 7 years ago
- Priority changed from Low to Normal
Raising priority as another Pulp user ran into a problem with this.
Also note, there is a new idea suggested by @asksol. https://github.com/celery/celery/issues/2492#issuecomment-177050069
We should try that.
Updated by email@example.com over 6 years ago
Katello is okay with this change. The result would be any tasks in katello that are assigned to a worker would no longer show as 'cancell'ed' forcing the user to resume them (or moving them to an errored state). I think this is better behavior and am okay with accepting potential differences in the future.
Updated by bmbouter over 4 years ago
Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.
Updated by bmbouter about 4 years ago
- Subject changed from When a worker dies or restarts, work assigned to that worker is cancelled to When an RQ worker dies or restarts, work assigned to that worker is cancelled
- Description updated (diff)
- Status changed from CLOSED - WONTFIX to NEW
- Severity changed from 1. Low to 2. Medium
- Version deleted (
- Tags deleted (
Updated by bmbouter almost 3 years ago
- Status changed from CLOSED - CURRENTRELEASE to NEW
Added by ttereshc over 1 year ago
Added forgotten changelog entry for 0.11.8
Updated by ttereshc over 1 year ago
- Status changed from NEW to MODIFIED
Applied in changeset pulp-2to3-migration|d00d7d67a055876130027908378c0952fc2adcf2.