Skip to content

Commit

Permalink
ANPL-1704 reduce wait_time_seconds to 0 to test
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljcollinsuk committed Sep 28, 2023
1 parent a9a6a23 commit ea69bf8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions controlpanel/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}',
Expand Down

0 comments on commit ea69bf8

Please sign in to comment.