Increase the SQL timeout for the notify-delivery-worker-reporting app.

When running the night reporting tasks we are seeing that some tasks are failing because the query is timing out. We need to revisit how to optimise the query but this will at least let the process finish.
This commit is contained in:
Rebecca Law
2021-12-23 11:41:49 +00:00
parent 3a214da379
commit 603acc8b1e
2 changed files with 2 additions and 1 deletions

View File

@@ -145,7 +145,7 @@ class Config(object):
SQLALCHEMY_POOL_SIZE = int(os.environ.get('SQLALCHEMY_POOL_SIZE', 5))
SQLALCHEMY_POOL_TIMEOUT = 30
SQLALCHEMY_POOL_RECYCLE = 300
SQLALCHEMY_STATEMENT_TIMEOUT = 1200
SQLALCHEMY_STATEMENT_TIMEOUT = int(os.environ.get('SQLALCHEMY_STATEMENT_TIMEOUT', 1200))
PAGE_SIZE = 50
API_PAGE_SIZE = 250
TEST_MESSAGE_FILENAME = 'Test message'