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

Add streaming gRPC service to transfer jobs from the server to the executor #1020

Merged
merged 13 commits into from
Jun 1, 2022

Conversation

severinson
Copy link
Contributor

@severinson severinson commented May 30, 2022

Currently, we send jobs to the executor in batches using unary gRPC calls. If such a call fails due to network error, those jobs are in limbo until the leases expire, which may be a long time. The issue is that, for unary gRPC calls, the server has no way of knowing if sending a response back succeeded or not.

This PR adds a way of sending jobs over a bidirectional gRPC stream, where jobs are from the server to the executor and ids of received jobs are sent back to the server. Only acked jobs are marked as leased by the server.

@severinson severinson merged commit c68da6f into master Jun 1, 2022
@severinson severinson deleted the streaming-lease branch June 1, 2022 13:34
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

2 participants