Skip to content

Commit

Permalink
[dev] update get task_staus
Browse files Browse the repository at this point in the history
  • Loading branch information
HAOCHENYE committed Nov 1, 2024
1 parent 9ba52c9 commit 56d3346
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opencompass/runners/volc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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...')
Expand Down

0 comments on commit 56d3346

Please sign in to comment.