Repository navigation
DDOS-6057: feat: timeout for files upload - #567
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR primarily updates the Files platform client to use a longer httpx timeout when uploading file bodies to signed URLs, reducing spurious timeouts during concurrent upload_tree operations. It also includes a documentation notebook update that changes how binding pockets are obtained.
Changes:
- Extend signed-URL upload timeouts in
Files._put_to_signed_url()by configuring an explicithttpx.Timeout. - Update the constrained docking notebook to run
PocketFinderand usepockets[0]for docking. - Minor/no-op change to
src/VERSIONcontent/formatting.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/VERSION | No functional version bump; appears to be a formatting/no-op change. |
| src/platform/files.py | Introduces a longer, explicit httpx timeout for signed-URL PUT uploads. |
| docs/notebooks/clean/constrained-docking.ipynb | Switches pocket selection from fixture-based loading to running PocketFinder and using the first returned pocket. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+166
to
+168
| "pf = PocketFinder(protein=protein, pocket_count=1)\n", | ||
| "pockets = pf.run()\n", | ||
| "protein.show(pockets=pockets)" |
| "cd = ConstrainedDocking(\n", | ||
| " protein=protein,\n", | ||
| " pocket=pocket,\n", | ||
| " pocket=pockets[0],\n", |
Keep PR scoped to signed-URL upload timeout fix in files.py only. Co-authored-by: Cursor <cursoragent@cursor.com>
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Increase httpx timeouts for signed-URL file uploads in
Files._put_to_signed_url. The default 5s read timeout was causing intermittent upload failures under concurrentupload_treeworkloads (e.g. RBFE finalize uploading hundreds of execution artifacts to S3).Timeout values: connect 10s, read 120s, write 300s, pool 10s.
Test plan
functionality-testspass (unit/integration, no live API)level-1-tests— dev env currently fails on main too (test_organizations.pyAPI shape drift); unrelated to this changedeeporigin-sdkafter merge so toolbox PR can pin5.0.1