File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -153,17 +153,15 @@ def download_all(self):
153
153
154
154
for test_task in test_tasks :
155
155
status = test_task ["status" ]["state" ]
156
+ task_id = test_task ["status" ]["taskId" ]
156
157
while status not in FINISHED_STATUSES :
157
158
assert status in ALL_STATUSES , "State '{}' not recognized" .format (
158
159
status
159
160
)
160
- logger .info (
161
- "Waiting for task {} to finish..." .format (
162
- test_task ["status" ]["taskId" ]
163
- )
164
- )
161
+ logger .info (f"Waiting for task { task_id } to finish..." )
165
162
time .sleep (60 )
166
- status = taskcluster .get_task_status (test_task ["status" ]["taskId" ])
163
+ task_status = taskcluster .get_task_status (task_id )
164
+ status = task_status ["status" ]["state" ]
167
165
168
166
# Choose best tasks to download (e.g. 'completed' is better than 'failed')
169
167
download_tasks = {}
You can’t perform that action at this time.
0 commit comments