Project

Profile

Help

Story #229

closed

Add new task state: cancel_requested

Added by rbarlow about 9 years ago. Updated about 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

++ This bug was initially created as a clone of Bugzilla Bug #1094523 ++

Description of problem:

I think it would be a worthwhile enhancement to distinguish between cancel_requested and canceled. The REST API could mark a task as cancel_requested, and once the worker successfully handles the request it can mark the task as canceled.

This would be handy for the CLI. The CLI currently exits immediately when polling tasks upon noticing that they are canceled. It could instead mark that the task has been requested to cancel, and wait to exit until it is actually exited. This would allow it to print the final progress report if there is one.

This would have aided in discovering the problem in #1082802[0], wherein it was found that cancellation was ignored.

[0] https://bugzilla.redhat.com/show_bug.cgi?id=1082802


Related issues

Related to Pulp - Story #1111: As an API user, I can purge completed task status recordsCLOSED - CURRENTRELEASEsbhawsin

Actions

Also available in: Atom PDF