tasks: add suspended task state

Add suspended task state. It will be used for revoke resize requests.
This commit is contained in:
Aleksandra Martyniuk
2024-12-11 14:14:25 +01:00
parent adf6b3f3ff
commit 24bbd161fd
3 changed files with 7 additions and 3 deletions

View File

@@ -284,7 +284,8 @@
"created",
"running",
"done",
"failed"
"failed",
"suspended"
],
"description":"The state of a task"
},
@@ -352,7 +353,8 @@
"created",
"running",
"done",
"failed"
"failed",
"suspended"
],
"description":"The state of the task"
},

View File

@@ -104,7 +104,8 @@ public:
created,
running,
done,
failed
failed,
suspended
};
enum class task_group {

View File

@@ -23,6 +23,7 @@ class State(StrEnum):
running = "running"
done = "done"
failed = "failed"
suspended = "suspended"
class TaskStats(NamedTuple):