On ajuste la gestion des exceptions

This commit is contained in:
Jean-Marie Favreau 2024-09-07 17:51:14 +02:00
parent a2b6f8bf62
commit 0e224c1667

View File

@ -212,8 +212,14 @@ def run_recurrent_import(self, pk):
else:
return run_recurrent_import_internal(rimport, downloader, self.request.id)
# if chromium is locked, we wait 30 seconds before retrying
raise self.retry(countdown=30)
try:
# if chromium is locked, we wait before retrying
raise self.retry(countdown=120)
except celery.exceptions.MaxRetriesExceededError as e:
logger.error(e)
close_import_task(req_id, False, e, importer)