You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when trying to create a tree with large data there is a timeout error:
importgithub3gh=github3.login(token=<token>)
repo=gh.repository(<org>, <repo>)
...
# Make big tree_data and tree_sha here.
...
tree=repo.create_tree(tree_data, tree_sha)
My goal is to not get the timeout when executing create_tree. Would it be a helpful addition to github3 if that timeout could be specified without patching the _post function? If not, would a PR that adds timeout to the create_tree function contract be welcome?
The text was updated successfully, but these errors were encountered:
Currently, when trying to create a tree with large data there is a timeout error:
Specifically, that
tree_data
object has 1610 blobs and is about 300 KB serialized.Manually adding a
timeout=60
to theself._post()
in that function:github3.py/src/github3/repos/repo.py
Line 1392 in 62367c9
allows the tree to successfully be created.
My goal is to not get the timeout when executing
create_tree
. Would it be a helpful addition togithub3
if that timeout could be specified without patching the_post
function? If not, would a PR that addstimeout
to thecreate_tree
function contract be welcome?The text was updated successfully, but these errors were encountered: