-
Notifications
You must be signed in to change notification settings - Fork 544
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
Block-builder-scheduler: RPC service and client module #10089
Block-builder-scheduler: RPC service and client module #10089
Conversation
…der-scheduler-kafka-flush
- accidentally wasn't calling scheduler.assignJob in the RPC. - Add logging for jobQueue operations. - Experimentally tear into blockbuilder to begin consuming jobs from scheduler.
…der-scheduler-kafka-flush
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly small comments, and I suggest updating the client_test.go a bit. Other than that, looking good! Thanks!
return key, spec, nil | ||
} | ||
|
||
return JobKey{}, JobSpec{}, lastErr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it was because of context cancellation, the error will be nil. It would be a good idea to mention in the comments of this function above that the returned job is valid iff the jobKey.Id is not empty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the context is canceled, the error will be non-nil.
…der-scheduler-rpc-client
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 Works for me
Co-authored-by: Vladimir Varankin <[email protected]>
…der-scheduler-rpc-client
What this PR does
AssignJob
andUpdateJob
) call into methods already implemented in previous PRs.GetJob
/CompleteJob
interface to block-builder.block-builder-scheduler
after testing the Assign/Update flow under docker-compose.dev env changes:
mimir-block-builder
andmimir-block-builder-scheduler
containers to themimir-ingest-storage
docker-compose dev environment.Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]
.about-versioning.md
updated with experimental features.