tasks: add suspended task state
Add suspended task state. It will be used for revoke resize requests.
This commit is contained in:
@@ -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"
|
||||
},
|
||||
|
||||
@@ -104,7 +104,8 @@ public:
|
||||
created,
|
||||
running,
|
||||
done,
|
||||
failed
|
||||
failed,
|
||||
suspended
|
||||
};
|
||||
|
||||
enum class task_group {
|
||||
|
||||
@@ -23,6 +23,7 @@ class State(StrEnum):
|
||||
running = "running"
|
||||
done = "done"
|
||||
failed = "failed"
|
||||
suspended = "suspended"
|
||||
|
||||
|
||||
class TaskStats(NamedTuple):
|
||||
|
||||
Reference in New Issue
Block a user