From 2c706d363e49f4d417571d23b35eb6e5c3165d30 Mon Sep 17 00:00:00 2001 From: uuuvn <83587632+uuuvn@users.noreply.github.com> Date: Sat, 17 May 2025 17:30:49 +0500 Subject: [PATCH] Remote higher timeout and overridable via `REMOTE_TIMEOUT` (#10367) sometimes a minute is not enough, 5 minutes should be but if it isn't for some huge workload it can be overridden --- tinygrad/runtime/ops_remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinygrad/runtime/ops_remote.py b/tinygrad/runtime/ops_remote.py index f168c2cc94..97fa2507fa 100644 --- a/tinygrad/runtime/ops_remote.py +++ b/tinygrad/runtime/ops_remote.py @@ -279,7 +279,7 @@ class RemoteConnection: if DEBUG >= 1: print(f"remote with host {host}") while 1: try: - self.conn = http.client.HTTPConnection(host, timeout=60.0) + self.conn = http.client.HTTPConnection(host, timeout=getenv("REMOTE_TIMEOUT", 300.0)) self.conn.connect() break except Exception as e: