* Fix single event return

* Allow customizing if search is preserved for overlay state

* Remove timeout

* Cleanup

* Cleanup naming
This commit is contained in:
Nicolas Mowen
2024-12-12 08:22:30 -06:00
committed by GitHub
parent 53b96dfb89
commit b4d82084a9
3 changed files with 10 additions and 5 deletions

View File

@@ -256,8 +256,9 @@ class EventCleanup(threading.Thread):
events_to_update = []
for batch in query.iterator():
events_to_update.extend([event.id for event in batch])
for event in query.iterator():
events_to_update.append(event)
if len(events_to_update) >= CHUNK_SIZE:
logger.debug(
f"Updating {update_params} for {len(events_to_update)} events"