Skip to content

Commit

Permalink
Fix typo in task state logic
Browse files Browse the repository at this point in the history
  • Loading branch information
dralley committed Jan 9, 2025
1 parent 2256ff4 commit 8fba079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulpcore/app/models/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def set_completed(self):
if rows != 1:
# If the user requested to cancel this task while the worker finished it, we leave it
# as it is, but accept this is not an error condition.
if self.state != TASK_STATES.CANCELLING:
if self.state != TASK_STATES.CANCELING:
raise RuntimeError(
_("Attempt to set not running task {} to completed from '{}'.").format(
self.pk, self.state
Expand Down

0 comments on commit 8fba079

Please sign in to comment.