From 56d33466e7414e1d662d4014dd7d3ea3f3052a54 Mon Sep 17 00:00:00 2001 From: HAOCHENYE <21724054@zju.edu.cn> Date: Fri, 1 Nov 2024 08:22:41 +0000 Subject: [PATCH] [dev] update get task_staus --- opencompass/runners/volc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opencompass/runners/volc.py b/opencompass/runners/volc.py index 5e9439e61..5381b2aaa 100644 --- a/opencompass/runners/volc.py +++ b/opencompass/runners/volc.py @@ -237,7 +237,8 @@ def _run_task(self, cmd, log_path, poll_interval): text=True, capture_output=True) try: - task_status = json.loads(ret.stdout)[0]['Status'] + task_status = json.loads( + ret.stdout.split()[-1])[0]['Status'] except JSONDecodeError: print('The task is not yet in the queue for ' f'{ret.stdout}, waiting...')