fix db connection pool

This commit is contained in:
Kenneth Kehl
2025-01-09 10:53:33 -08:00
parent 4293da640a
commit 6aae2c7aae
4 changed files with 21 additions and 4 deletions

View File

@@ -243,6 +243,8 @@ def check_for_services_with_high_failure_rates_or_sending_to_tv_numbers():
bind=True, max_retries=7, default_retry_delay=3600, name="process-delivery-receipts"
)
def process_delivery_receipts(self):
# If we need to check db settings do it here for convenience
# current_app.logger.info(f"POOL SIZE {app.db.engine.pool.size()}")
"""
Every eight minutes or so (see config.py) we run this task, which searches the last ten
minutes of logs for delivery receipts and batch updates the db with the results. The overlap