limit number of ftrack events to query at once (#5033)

This commit is contained in:
Jakub Trllo 2023-05-25 13:33:11 +02:00 committed by GitHub
parent 124493affd
commit 48b4934ee3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -196,7 +196,7 @@ class ProcessEventHub(SocketBaseEventHub):
{"pype_data.is_processed": False}
).sort(
[("pype_data.stored", pymongo.ASCENDING)]
)
).limit(100)
found = False
for event_data in not_processed_events: