From d11521dd16cfee5935abfe6608cdcec40a0e1c28 Mon Sep 17 00:00:00 2001 From: wbanks Date: Tue, 13 Aug 2024 16:34:22 -0400 Subject: [PATCH] Timeout callback requests after 1 sec --- app/celery/service_callback_tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/celery/service_callback_tasks.py b/app/celery/service_callback_tasks.py index f75cbb0561..47aaa4d11c 100644 --- a/app/celery/service_callback_tasks.py +++ b/app/celery/service_callback_tasks.py @@ -72,7 +72,7 @@ def _send_data_to_service_callback_api(self, data, service_callback_url, token, "Content-Type": "application/json", "Authorization": f"Bearer {token}", }, - timeout=5, + timeout=1, ) current_app.logger.info(