Skip to content

Commit 8c91eb7

Browse files
authored
fix: set continuation_token correctly in find_task_id_batched (#760)
As this code stands now the continuation token will never be used, and any continuation cases will result in an infinite loop.
1 parent 3b7a6d3 commit 8c91eb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/taskgraph/util/taskcluster.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ def find_task_id_batched(index_paths, use_proxy=False):
240240
raise ValueError("more task ids were returned than were asked for")
241241
task_ids.update((t["namespace"], t["taskId"]) for t in response_tasks)
242242

243-
continuationToken = response_data.get("continuationToken")
244-
if continuationToken is None:
243+
continuation_token = response_data.get("continuationToken")
244+
if continuation_token is None:
245245
break
246246
return task_ids
247247

0 commit comments

Comments
 (0)