Longer timeout
This commit is contained in:
@@ -204,7 +204,7 @@ def _cooking_worker(microwave_id: str, sensors_data: dict, cancel_event: threadi
|
||||
sensors_data["camera_image"] = base64.b64encode(sensors_data["camera_image"]).decode("utf-8")
|
||||
|
||||
# 1. HTTP Request (15-second timeout)
|
||||
response = requests.post(URL, json=sensors_data, timeout=15)
|
||||
response = requests.post(URL, json=sensors_data, timeout=360) # timeout for long-running requests
|
||||
|
||||
# Check cancellation right after network call returns
|
||||
if cancel_event.is_set():
|
||||
|
||||
Reference in New Issue
Block a user