diff --git a/apiserver/bll/task/utils.py b/apiserver/bll/task/utils.py index 5cb9627..4ea21b4 100644 --- a/apiserver/bll/task/utils.py +++ b/apiserver/bll/task/utils.py @@ -144,7 +144,12 @@ state_machine = { TaskStatus.publishing, TaskStatus.stopped, }, - TaskStatus.failed: {TaskStatus.created, TaskStatus.stopped, TaskStatus.published}, + TaskStatus.failed: { + TaskStatus.created, + TaskStatus.stopped, + TaskStatus.published, + TaskStatus.queued, + }, TaskStatus.publishing: {TaskStatus.published}, TaskStatus.published: set(), TaskStatus.completed: {