Skip to content

Commit 39244db

Browse files
committed
small cleanup
1 parent 77da31e commit 39244db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/performance/locustfiles/functions/function_map_load_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ def map_function(self) -> None:
9595
job_collection_uuid = response.json().get("uid")
9696

9797
# wait for the job to complete
98+
query_params = dict(
99+
include_status=True, function_job_collection_id=job_collection_uuid
100+
)
98101
for attempt in Retrying(
99102
stop=stop_after_delay(max_delay=max_poll_time),
100103
wait=wait_exponential(multiplier=1, min=1, max=10),
@@ -103,9 +106,6 @@ def map_function(self) -> None:
103106
):
104107
with attempt:
105108
# list all jobs in the collection with status
106-
query_params = dict(
107-
include_status=True, function_job_collection_id=job_collection_uuid
108-
)
109109
next_page_url = "/v0/function_jobs?" + urlencode(query_params)
110110
all_job_statuses = []
111111
while next_page_url is not None:

0 commit comments

Comments
 (0)