Actions
Issue #7980
closedThe state for canceled tasks is set to failed
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 93
Quarter:
Description
This started with the release of pulpcore 3.9. When a task is canceled, its state is 'failed' instead of 'canceled'.
Steps to reproduce¶
remote_href=$(http :/pulp/api/v3/remotes/file/file/ name=$RANDOM url=https://fixtures.pulpproject.org/file-perf/PULP_MANIFEST | jq -r '.pulp_href')
repo_href=$(http :/pulp/api/v3/repositories/file/file/ name=$RANDOM remote=$remote_href | jq -r '.pulp_href')
task_href=$(http POST :${repo_href}sync/ | jq -r '.task')
echo $task_href
http PATCH :${task_href} state=canceled
http :$task_href | jq -r '.state'
This will out put failed
when it should output canceled
. I noticed that the task response from the cancel request correctly shows canceled
.
Related issues
Updated by daviddavis about 4 years ago
Looks like the switch to rq's stop job command is triggering the handle job failure function.
Updated by dalley about 4 years ago
I've filed https://github.com/rq/rq/issues/1389
Updated by dalley about 4 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to dalley
Updated by daviddavis about 4 years ago
Once this issue is resolved, we'll need to revert https://github.com/pulp/pulp-cli/pull/41.
Updated by fao89 about 4 years ago
- Triaged changed from No to Yes
- Sprint set to Sprint 87
Updated by dalley over 3 years ago
- Has duplicate Issue #8143: Cancelling a task logs a failure message before logging the cancel message added
Added by dalley over 3 years ago
Updated by dalley over 3 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulpcore|c672962ee7e30901ad69dc5e3bf7417d7289d8b5.
Updated by pulpbot over 3 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Fix another scenario where canceled tasks could be marked failed
closes: #7980 https://pulp.plan.io/issues/7980