lazy init encryption

This commit is contained in:
Kenneth Kehl
2025-10-06 12:16:34 -07:00
parent e3a465b8ba
commit 46c5cb24fe
3 changed files with 19 additions and 5 deletions

View File

@@ -3,10 +3,12 @@ import json
from flask import current_app
from requests import HTTPError, RequestException, request
from app import encryption, notify_celery
from app import get_encryption, notify_celery
from app.config import QueueNames
from app.utils import DATETIME_FORMAT
encryption = get_encryption()
@notify_celery.task(
bind=True, name="send-delivery-status", max_retries=5, default_retry_delay=300