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

Implement RPC timeouts #123

Merged
merged 9 commits into from
Dec 3, 2024
Merged

Implement RPC timeouts #123

merged 9 commits into from
Dec 3, 2024

Conversation

blast-hardcheese
Copy link
Contributor

Why

Requiring an explicit timeout to be set on all RPC calls will prevent runaway execution.

What changed

Add a required timeout: timedelta parameter to all rpc methods

Test plan

TBD. https://github.com/replit/river-babel would be nice for this, but it's still undergoing some upgrade pains.

@blast-hardcheese blast-hardcheese force-pushed the dstewart/feat/rpc-timeouts branch 8 times, most recently from 4c4006b to f09fda5 Compare November 29, 2024 19:58
@blast-hardcheese blast-hardcheese marked this pull request as ready for review November 29, 2024 20:32
@blast-hardcheese blast-hardcheese requested a review from a team as a code owner November 29, 2024 20:32
@blast-hardcheese blast-hardcheese requested review from jackyzha0 and removed request for a team November 29, 2024 20:32
Makefile Outdated Show resolved Hide resolved
replit_river/client_session.py Show resolved Hide resolved
replit_river/session.py Show resolved Hide resolved
replit_river/client_session.py Show resolved Hide resolved
blast-hardcheese added a commit that referenced this pull request Dec 2, 2024
Why
===

Breaking out ruff changes from #123 

What changed
============

Separation of concerns, increasing revertability

Test plan
=========

CI
@blast-hardcheese blast-hardcheese force-pushed the dstewart/feat/rpc-timeouts branch from 2ad4ca5 to 187a487 Compare December 2, 2024 22:39
@blast-hardcheese blast-hardcheese force-pushed the dstewart/feat/rpc-timeouts branch from a261b7b to f5de68b Compare December 3, 2024 01:30
@blast-hardcheese blast-hardcheese added the enhancement New feature or request label Dec 3, 2024
@blast-hardcheese blast-hardcheese merged commit ead7ce3 into main Dec 3, 2024
3 checks passed
@blast-hardcheese blast-hardcheese deleted the dstewart/feat/rpc-timeouts branch December 3, 2024 01:48
@blast-hardcheese blast-hardcheese added the minor Bump minor version label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request minor Bump minor version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants