mirror of
https://github.com/GSA/notifications-api.git
synced 2026-07-13 09:50:39 -04:00
Merge pull request #1874 from GSA/surface-task-error
Expose underlying error message in process delivery task
This commit is contained in:
@@ -282,6 +282,9 @@ def process_delivery_receipts(self):
|
||||
except Exception as ex:
|
||||
retry_count = self.request.retries
|
||||
wait_time = 3600 * 2**retry_count
|
||||
|
||||
current_app.logger.exception(str(ex))
|
||||
|
||||
try:
|
||||
raise self.retry(ex=ex, countdown=wait_time)
|
||||
except self.MaxRetriesExceededError:
|
||||
|
||||
Reference in New Issue
Block a user