Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve handling of file requests during worker restarts #2960

Merged
merged 2 commits into from
Dec 13, 2023

Conversation

nellh
Copy link
Contributor

@nellh nellh commented Dec 13, 2023

This avoids an API crash and returns an error the clients can handle if a worker is temporarily unavailable (took more than 10 seconds begin responding to the file request). Timeout might be a little tight here for some datasets but raising it too much leads to stacking up these errors while a worker restarts.

Handling the timeout error here in both the standard way and the Node.js way to keep this portable for Deno.

Copy link

codecov bot commented Dec 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (da98f12) 64.91% compared to head (fc573c8) 64.91%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2960   +/-   ##
=======================================
  Coverage   64.91%   64.91%           
=======================================
  Files         378      378           
  Lines       24317    24322    +5     
  Branches      878      878           
=======================================
+ Hits        15785    15789    +4     
- Misses       8532     8533    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nellh nellh merged commit 02c41aa into master Dec 13, 2023
7 checks passed
@nellh nellh deleted the fix/handle-worker-restarts branch December 13, 2023 21:08
@nellh nellh restored the fix/handle-worker-restarts branch January 4, 2024 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant