fix(runtime): recover awake ownership and batch model failures
This commit is contained in:
1 parent
6b2c0f199d
commit
baf069854b
17 files changed
+477
-32
No files matched your search
@@ -1522,8 +1522,10 @@ class TaskQueueService:
|
||||
from artemis.plugins.store import PluginStore
|
||||
|
||||
for batch in store.records("batch"):
|
||||
if batch["status"] == "running":
|
||||
batch.update(status="paused", reason="已停止全部任务,等待手动继续")
|
||||
if batch["status"] in {"running", "paused"}:
|
||||
batch.update(
|
||||
status="paused", reason="已停止全部任务,等待手动继续", pause_source="user"
|
||||
)
|
||||
store.put("batch", batch["id"], batch)
|
||||
# 1. Cancel local queue reservations
|
||||
for item in state.queue_items:
|
||||
|
||||
Reference in new issue
Block a user