mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
Merge pull request #1472 from GSA/change_retry_schedule
change worker_max_tasks_per_child to 2000
This commit is contained in:
@@ -158,7 +158,7 @@ class AwsCloudwatchClient(Client):
|
|||||||
message["delivery"].get("phoneCarrier", "Unknown Carrier"),
|
message["delivery"].get("phoneCarrier", "Unknown Carrier"),
|
||||||
)
|
)
|
||||||
|
|
||||||
if time_now > (created_at + timedelta(hours=3)):
|
if time_now > (created_at + timedelta(hours=73)):
|
||||||
# see app/models.py Notification. This message corresponds to "permanent-failure",
|
# see app/models.py Notification. This message corresponds to "permanent-failure",
|
||||||
# but we are copy/pasting here to avoid circular imports.
|
# but we are copy/pasting here to avoid circular imports.
|
||||||
return "failure", "Unable to find carrier response."
|
return "failure", "Unable to find carrier response."
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ class Config(object):
|
|||||||
current_minute = (datetime.now().minute + 1) % 60
|
current_minute = (datetime.now().minute + 1) % 60
|
||||||
|
|
||||||
CELERY = {
|
CELERY = {
|
||||||
"worker_max_tasks_per_child": 500,
|
"worker_max_tasks_per_child": 2000,
|
||||||
"broker_url": REDIS_URL,
|
"broker_url": REDIS_URL,
|
||||||
"broker_transport_options": {
|
"broker_transport_options": {
|
||||||
"visibility_timeout": 310,
|
"visibility_timeout": 310,
|
||||||
|
|||||||
Reference in New Issue
Block a user