mirror of
https://github.com/clearml/clearml-server
synced 2025-03-03 10:43:10 +00:00
Fix task dequeue will changes status for un-queued/running tasks
This commit is contained in:
parent
95b8f22899
commit
875f4b9536
@ -473,6 +473,9 @@ class TaskBLL:
|
||||
if remove_from_all_queues:
|
||||
cls.remove_task_from_all_queues(company_id=company_id, task=task)
|
||||
|
||||
if task.status not in [TaskStatus.queued, TaskStatus.in_progress]:
|
||||
return {"updated": 0}
|
||||
|
||||
return ChangeStatusRequest(
|
||||
task=task,
|
||||
new_status=task.enqueue_status or TaskStatus.created,
|
||||
|
Loading…
Reference in New Issue
Block a user