Repository navigation
colab upload/download can hang forever: Contents API requests have no timeout
#252
GongYuanCaiJi
started this conversation in
General
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Version: 0.7.6 (Linux)
colab upload/colab downloadcan hang forever when the network stalls: the Contents API requests have no timeout.Where:
contents.pyline 41,requests.request(method, url, params=req_params, json=json_data)with notimeout=.requestswaits indefinitely by default, so a stalled connection never returns. Unattended pipelines then block until something outside kills the process.Expected: a connect and read timeout on these requests (and ideally a retry for transient 5xx, which we also see now and then on upload).
Workaround we use today: we run every
upload/downloadunder an outer process timeout (30 minutes) and retry 5xx failures ourselves.All reactions