From dcba68b3c360d17066abbfafe999dd880ad9e557 Mon Sep 17 00:00:00 2001 From: anda-ren Date: Wed, 17 May 2023 19:10:15 +0800 Subject: [PATCH] fix cancel error --- .../starwhale/mlops/domain/task/status/TaskStatusMachine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/controller/src/main/java/ai/starwhale/mlops/domain/task/status/TaskStatusMachine.java b/server/controller/src/main/java/ai/starwhale/mlops/domain/task/status/TaskStatusMachine.java index 62fea09ff1..2231cd5b3a 100644 --- a/server/controller/src/main/java/ai/starwhale/mlops/domain/task/status/TaskStatusMachine.java +++ b/server/controller/src/main/java/ai/starwhale/mlops/domain/task/status/TaskStatusMachine.java @@ -43,7 +43,7 @@ public class TaskStatusMachine { new SimpleEntry<>(PAUSED, Set.of(PREPARING, ASSIGNING, RUNNING, READY, CANCELED, SUCCESS)), new SimpleEntry<>(ASSIGNING, Set.of(CREATED, PREPARING, RUNNING, SUCCESS, FAIL, TO_CANCEL)), new SimpleEntry<>(PREPARING, Set.of(RUNNING, SUCCESS, FAIL, TO_CANCEL)), - new SimpleEntry<>(RUNNING, Set.of(SUCCESS, FAIL, TO_CANCEL)), + new SimpleEntry<>(RUNNING, Set.of(SUCCESS, FAIL, TO_CANCEL, CANCELED)), new SimpleEntry<>(TO_CANCEL, Set.of(CANCELLING, CANCELED, SUCCESS, FAIL)), new SimpleEntry<>(CANCELLING, Set.of(CANCELED, FAIL)), new SimpleEntry<>(CANCELED, Set.of()),