Project

Profile

Help

Issue #7980

closed

The state for canceled tasks is set to failed

Added by daviddavis over 3 years ago. Updated almost 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
Category:
-
Sprint/Milestone:
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

Has duplicate Pulp - Issue #8143: Cancelling a task logs a failure message before logging the cancel messageCLOSED - DUPLICATEdalleyActions

Also available in: Atom PDF