mirror of
https://github.com/GSA/notifications-api.git
synced 2026-07-23 17:39:40 -04:00
Trying to get autoretry logic to work.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
@@ -9,7 +9,10 @@ from app import encryption, notify_celery
|
||||
from app.utils import DATETIME_FORMAT
|
||||
|
||||
|
||||
def _send_to_service_task_handler(func):
|
||||
def _send_to_service_task_handler(cls):
|
||||
|
||||
func = cls.__call__
|
||||
|
||||
@wraps(func)
|
||||
def send_to_service_task_wrapper(*args, **kwargs):
|
||||
sig = signature(func)
|
||||
@@ -48,7 +51,9 @@ def _send_to_service_task_handler(func):
|
||||
)
|
||||
raise
|
||||
|
||||
return send_to_service_task_wrapper
|
||||
cls.__call__ = send_to_service_task_wrapper
|
||||
|
||||
return cls
|
||||
|
||||
|
||||
@_send_to_service_task_handler
|
||||
|
||||
Reference in New Issue
Block a user