From 5aaad81edc6a404c25a7a99e11ece8bf89183baa Mon Sep 17 00:00:00 2001 From: fidiego Date: Tue, 3 Feb 2026 23:42:58 -0600 Subject: [PATCH] chore: add a timeout to the http.request in the phonehome lambda otherwise, if the api is down, the phone home will wait indefinitely for a response that is destined to never arrive. this is really only an issue in dev when the runner api may be down. in production, we expect a sub second response and no more than 1 failure at any given time. --- scripts/aws/phonehome.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/aws/phonehome.py b/scripts/aws/phonehome.py index 56b6d67..db26304 100644 --- a/scripts/aws/phonehome.py +++ b/scripts/aws/phonehome.py @@ -30,6 +30,7 @@ def lambda_handler(event, context): "POST", url, body=encoded_data, + timeout=5, headers={"Content-Type": "application/json"}, ) if 200 <= response.status < 300: