From d46dbd8a2ff7b748039e8cf217287195df748c4e Mon Sep 17 00:00:00 2001 From: Yuxing Fei Date: Mon, 6 May 2024 23:01:13 -0700 Subject: [PATCH] fix a bug in task_manager In update_canceling_progress, the original_progress should be enum instead of the raw string. --- alab_management/task_manager/task_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alab_management/task_manager/task_manager.py b/alab_management/task_manager/task_manager.py index f55069ff..7a17ce40 100644 --- a/alab_management/task_manager/task_manager.py +++ b/alab_management/task_manager/task_manager.py @@ -152,5 +152,5 @@ def handle_tasks_to_be_canceled(self): self.task_view.update_canceling_progress( task_id=task_entry["task_id"], canceling_progress=CancelingProgress.WORKER_NOTIFIED, - original_progress=task_entry["canceling_progress"], + original_progress=CancelingProgress(task_entry["canceling_progress"]), )