mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
suppress warnings
This commit is contained in:
@@ -196,8 +196,11 @@ def get_s3_files():
|
||||
current_app.logger.info(
|
||||
f"job_cache length before regen: {len(job_cache)} #notify-admin-1200"
|
||||
)
|
||||
with ThreadPoolExecutor() as executor:
|
||||
executor.map(lambda key: read_s3_file(bucket_name, key, s3res), object_keys)
|
||||
try:
|
||||
with ThreadPoolExecutor() as executor:
|
||||
executor.map(lambda key: read_s3_file(bucket_name, key, s3res), object_keys)
|
||||
except Exception:
|
||||
current_app.logger.exception("Connection pool issue")
|
||||
|
||||
current_app.logger.info(
|
||||
f"job_cache length after regen: {len(job_cache)} #notify-admin-1200"
|
||||
|
||||
@@ -13,6 +13,7 @@ AWS_CLIENT_CONFIG = Config(
|
||||
"addressing_style": "virtual",
|
||||
},
|
||||
use_fips_endpoint=True,
|
||||
max_pool_connections=50,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user