Skip to content

Commit 8d86f95

Browse files
committed
snapshot in-flight cache in oldest_queued_age_by_queue
1 parent d67a520 commit 8d86f95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

celerymon/event_watcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def oldest_queued_age_by_queue(
289289
now_ts = now.timestamp()
290290
ttl_cutoff = now_ts - self._in_flight_ttl_sec
291291
ages: dict[str, float] = {}
292-
for entry in self._in_flight.values():
292+
for entry in tuple(self._in_flight.values()):
293293
if entry.expires_ts is not None and entry.expires_ts < now_ts:
294294
continue
295295
if entry.sent_ts < ttl_cutoff:

0 commit comments

Comments
 (0)