Avoid errors if task_status is a tuple

This commit is contained in:
Joshua Boniface 2024-01-18 12:30:31 -05:00
parent 86ca363697
commit 8f3120baf3
1 changed files with 2 additions and 0 deletions

View File

@ -115,6 +115,8 @@ def wait_for_celery_task(CLI_CONFIG, task_detail, start_late=False):
)
while True:
sleep(0.5)
if isinstance(task_status, tuple):
continue
if task_status.get("state") != "RUNNING":
break
if task_status.get("current") > last_task: