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

feat: new listen strategy with worker-side heartbeats #308

Merged
merged 3 commits into from
Apr 1, 2024

Conversation

abelanger5
Copy link
Contributor

Description

We previously have been running a periodic update engine-side for each worker connected to the server-side streaming RPC Listen. This is fine when connecting to the engine directly but is causing issues in proxied setups where sometimes the proxy is keeping connections open for longer than the heartbeat duration. This makes it look like workers are alive when they should be disconnected.

This PR adds support for a Heartbeat method that runs async on a client-side timer. ListenV2 is the preferred RPC for connecting to the engine, though we have kept Listen for backwards-compatability.

Type of change

  • New feature (non-breaking change which adds functionality)

Copy link

vercel bot commented Mar 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hatchet-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 1, 2024 2:30am

@abelanger5 abelanger5 merged commit cdf203d into main Apr 1, 2024
18 checks passed
@abelanger5 abelanger5 deleted the belanger/worker-heartbeat-2 branch April 1, 2024 02:45
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.

2 participants