From 28177a9bbb9cefde679f69c4c498591e3f7aa004 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Wed, 8 Oct 2025 08:15:31 -0700 Subject: [PATCH] fix notification provider clients --- app/__init__.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/__init__.py b/app/__init__.py index 7f35b05dc..77b3bd848 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -90,6 +90,9 @@ db = SQLAlchemy( } ) migrate = None + +# safe to do this for monkeypatching because all real work happens in notify_celery.init_app() +# called in create_app() notify_celery = NotifyCelery() aws_ses_client = None aws_ses_stub_client = None @@ -97,10 +100,13 @@ aws_sns_client = None aws_cloudwatch_client = None encryption = None zendesk_client = None +# safe to do this for monkeypatching because all real work happens in redis_store.init_app() +# called in create_app() redis_store = RedisClient() document_download_client = None - +# safe for monkey patching, all work down in +# notification_provider_clients.init_app() in create_app() notification_provider_clients = NotificationProviderClients() # LocalProxy doesn't evaluate the target immediately, but defers