mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 04:10:44 -03:30
Surface correct error from bulk_create on unrecoverable error
This commit is contained in:
parent
43a50cc62c
commit
998000bfbe
@ -182,9 +182,10 @@ class CallbackBrokerWorker(BaseWorker):
|
||||
consecutive_errors = 0
|
||||
except Exception as exc_indv:
|
||||
consecutive_errors += 1
|
||||
if consecutive_errors >= 5:
|
||||
raise
|
||||
logger.info(f'Database Error Saving individual Job Event, error {str(exc_indv)}')
|
||||
|
||||
if consecutive_errors >= 5:
|
||||
raise
|
||||
metrics_singular_events_saved += events_saved
|
||||
if events_saved == 0:
|
||||
raise
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user