On ajuste la gestion des exceptions
This commit is contained in:
parent
a2b6f8bf62
commit
0e224c1667
@ -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)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user