Fix event counting in error handling path

This commit is contained in:
Alan Rominger 2022-08-08 22:29:42 -04:00
parent 30f556f845
commit 43a50cc62c
No known key found for this signature in database
GPG Key ID: C2D7EAAA12B63559

View File

@ -178,7 +178,7 @@ class CallbackBrokerWorker(BaseWorker):
for e in events:
try:
e.save()
events_saved += 0
events_saved += 1
consecutive_errors = 0
except Exception as exc_indv:
consecutive_errors += 1