Skip to content

Conversation

@michaelawyu
Copy link
Contributor

@michaelawyu michaelawyu commented Jun 8, 2023

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:

  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

  • Unit tests

Special notes for your reviewer


// ErrorFlag is a flag for indicating whether an error has occurred when running tasks in
// parallel with the parallelizer.
type ErrorFlag struct {
Copy link
Contributor

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?

Copy link
Contributor Author

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()).

ryanzhang-oss
ryanzhang-oss previously approved these changes Jun 9, 2023
zhiying-lin
zhiying-lin previously approved these changes Jun 12, 2023
Copy link
Contributor

@zhiying-lin zhiying-lin left a 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

@michaelawyu michaelawyu dismissed stale reviews from zhiying-lin and ryanzhang-oss via dd9418a June 12, 2023 08:19
@michaelawyu michaelawyu force-pushed the scheduler-framework-parallelizer branch from 423dca5 to dd9418a Compare June 12, 2023 08:19
@zhiying-lin zhiying-lin merged commit 0b9b584 into Azure:main Jun 13, 2023
weng271190436 added a commit that referenced this pull request Jan 6, 2026
* decouple informer cache population and event handling

Signed-off-by: Wei Weng <Wei.Weng@microsoft.com>
@britaniar britaniar mentioned this pull request Jan 12, 2026
1 task
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.

3 participants