mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-09 06:58:11 -05:00
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
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user