diff --git a/py/api/job_routes.py b/py/api/job_routes.py index 82dcbfcb..ce013446 100644 --- a/py/api/job_routes.py +++ b/py/api/job_routes.py @@ -250,7 +250,7 @@ class JobRoutesMixin: try: await response.write(_summary_event(job)) async with contextlib.aclosing(job.events()) as events: - async for _payload in events: + async for _ in events: await response.write(_summary_event(job)) # The last event is published before the job takes its final state. await response.write(_summary_event(job))