Replace celery[sqs] with celery[redis]

This commit is contained in:
Ryan Ahearn
2022-09-28 16:27:37 -04:00
parent fd6007656f
commit e3ad01119d
13 changed files with 13 additions and 21 deletions

View File

@@ -449,6 +449,7 @@ def handle_exception(task, notification, notification_id, exc):
# Sometimes, SQS plays the same message twice. We should be able to catch an IntegrityError, but it seems
# SQLAlchemy is throwing a FlushError. So we check if the notification id already exists then do not
# send to the retry queue.
# This probably (hopefully) is not an issue with Redis as the celery backing store
current_app.logger.exception('Retry' + retry_msg)
try:
task.retry(queue=QueueNames.RETRY, exc=exc)