-
Notifications
You must be signed in to change notification settings - Fork 38
feat: scheduler (5/): add parallelizer #380
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: scheduler (5/): add parallelizer #380
Conversation
|
|
||
| // ErrorFlag is a flag for indicating whether an error has occurred when running tasks in | ||
| // parallel with the parallelizer. | ||
| type ErrorFlag struct { |
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.
how does this work with Parallelizer?
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.
Hi Ryan! The error flag is designed to be used in doWork when calling parallelizer.ParallelizeUntil -> it allows exit on first error (in combination with context cancel()).
zhiying-lin
left a comment
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.
one minor comment, others LGTM
dd9418a
423dca5 to
dd9418a
Compare
* decouple informer cache population and event handling Signed-off-by: Wei Weng <Wei.Weng@microsoft.com>
Description of your changes
This PR is part of the PRs that implement the Fleet workload scheduling.
It features a parallelizer, which the scheduler frameworks uses to run tasks in parallel.
I have:
make reviewableto ensure this PR is ready for review.How has this code been tested
Special notes for your reviewer