Add timeouts to external calls to service

following the principle 'always set timeouts when making network calls'
This commit is contained in:
Klaas van Schelven
2025-07-28 21:59:01 +02:00
parent 0aa7de30d2
commit 718127fd08

View File

@@ -123,6 +123,7 @@ def slack_backend_send_test_message(webhook_url, project_name, display_name, ser
webhook_url,
data=json.dumps(data),
headers={"Content-Type": "application/json"},
timeout=5,
)
result.raise_for_status()
@@ -201,6 +202,7 @@ def slack_backend_send_alert(
webhook_url,
data=json.dumps(data),
headers={"Content-Type": "application/json"},
timeout=5,
)
result.raise_for_status()