Increase max_retries for the task.

This commit is contained in:
Rebecca Law
2017-03-15 15:42:52 +00:00
parent 140179b4b6
commit 6e7482aaac

View File

@@ -258,7 +258,7 @@ def persist_letter(
handle_exception(self, notification, notification_id, e)
@notify_celery.task(bind=True, name="build-dvla-file", max_retries=5, default_retry_delay=300)
@notify_celery.task(bind=True, name="build-dvla-file", max_retries=15, default_retry_delay=300)
@statsd(namespace="tasks")
def build_dvla_file(self, job_id):
if all_notifications_are_created_for_job(job_id):