From 75805531f7798677701b33723c0a5e90934711d7 Mon Sep 17 00:00:00 2001 From: Ben Hearsum Date: Wed, 3 Sep 2025 20:14:44 -0400 Subject: [PATCH] fix: set continuation_token correctly in `find_task_id_batched` As this code stands now the continuation token will never be used, and any continuation cases will result in an infinite loop. --- src/taskgraph/util/taskcluster.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/taskgraph/util/taskcluster.py b/src/taskgraph/util/taskcluster.py index 9d545360b..612e12163 100644 --- a/src/taskgraph/util/taskcluster.py +++ b/src/taskgraph/util/taskcluster.py @@ -240,8 +240,8 @@ def find_task_id_batched(index_paths, use_proxy=False): raise ValueError("more task ids were returned than were asked for") task_ids.update((t["namespace"], t["taskId"]) for t in response_tasks) - continuationToken = response_data.get("continuationToken") - if continuationToken is None: + continuation_token = response_data.get("continuationToken") + if continuation_token is None: break return task_ids