From ea69bf89d444345d1771f75176bb2327fa20c458 Mon Sep 17 00:00:00 2001 From: Michael Collins <15347726+michaeljcollinsuk@users.noreply.github.com> Date: Wed, 27 Sep 2023 16:39:49 +0100 Subject: [PATCH] ANPL-1704 reduce wait_time_seconds to 0 to test --- controlpanel/settings/common.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/controlpanel/settings/common.py b/controlpanel/settings/common.py index c946d0cdb..169e85040 100644 --- a/controlpanel/settings/common.py +++ b/controlpanel/settings/common.py @@ -551,14 +551,12 @@ PRE_DEFINED_QUEUES = [IAM_QUEUE_NAME, S3_QUEUE_NAME, AUTH_QUEUE_NAME] CELERY_DEFAULT_QUEUE = DEFAULT_QUEUE SQS_REGION = os.environ.get("SQS_REGION", "eu-west-2") - BROKER_TRANSPORT_OPTIONS = { "polling_interval": 1, "region": SQS_REGION, - "wait_time_seconds": 20, + "wait_time_seconds": 0, "predefined_queues": {} } - for queue in PRE_DEFINED_QUEUES: BROKER_TRANSPORT_OPTIONS['predefined_queues'][queue] = { 'url': f'https://sqs.{SQS_REGION}.amazonaws.com/{AWS_DATA_ACCOUNT_ID}/{queue}',