mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-10 01:56:03 -04:00
wait 20 seconds between long polls
This commit is contained in:
@@ -150,9 +150,9 @@ class Config(object):
|
|||||||
BROKER_URL = 'sqs://'
|
BROKER_URL = 'sqs://'
|
||||||
BROKER_TRANSPORT_OPTIONS = {
|
BROKER_TRANSPORT_OPTIONS = {
|
||||||
'region': AWS_REGION,
|
'region': AWS_REGION,
|
||||||
'polling_interval': 1, # 1 second
|
|
||||||
'visibility_timeout': 310,
|
'visibility_timeout': 310,
|
||||||
'queue_name_prefix': NOTIFICATION_QUEUE_PREFIX
|
'queue_name_prefix': NOTIFICATION_QUEUE_PREFIX,
|
||||||
|
'wait_time_seconds': 20 # enable long polling, with a wait time of 20 seconds
|
||||||
}
|
}
|
||||||
CELERY_ENABLE_UTC = True
|
CELERY_ENABLE_UTC = True
|
||||||
CELERY_TIMEZONE = 'Europe/London'
|
CELERY_TIMEZONE = 'Europe/London'
|
||||||
|
|||||||
Reference in New Issue
Block a user