mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 09:51:11 -05:00
Extend the retry time on the create notification DB tasks
- Was previoulsy 5 attempts 5 seconds apart - No 5 times 5 minutes apart. - Gives 25 mins of retries before an error
This commit is contained in:
@@ -126,7 +126,7 @@ def remove_job(job_id):
|
||||
current_app.logger.info("Job {} has been removed from s3.".format(job_id))
|
||||
|
||||
|
||||
@notify_celery.task(bind=True, name="send-sms", max_retries=5, default_retry_delay=5)
|
||||
@notify_celery.task(bind=True, name="send-sms", max_retries=5, default_retry_delay=300)
|
||||
@statsd(namespace="tasks")
|
||||
def send_sms(self,
|
||||
service_id,
|
||||
@@ -158,7 +158,7 @@ def send_sms(self,
|
||||
raise self.retry(queue="retry", exc=e)
|
||||
|
||||
|
||||
@notify_celery.task(bind=True, name="send-email", max_retries=5, default_retry_delay=5)
|
||||
@notify_celery.task(bind=True, name="send-email", max_retries=5, default_retry_delay=300)
|
||||
@statsd(namespace="tasks")
|
||||
def send_email(self, service_id,
|
||||
notification_id,
|
||||
|
||||
Reference in New Issue
Block a user