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

util: add taskgroup #922

Merged
merged 25 commits into from
Jun 17, 2024
Merged

util: add taskgroup #922

merged 25 commits into from
Jun 17, 2024

Conversation

Omrigan
Copy link
Contributor

@Omrigan Omrigan commented Apr 26, 2024

taskgroup.Group is the better version of errgroup.Group with two changes:

  1. Support for multerrors
  2. Logging the errors, when they are returned

Part of #921

Omrigan added 8 commits April 26, 2024 19:06
Signed-off-by: Oleg Vasilev <[email protected]>
Signed-off-by: Oleg Vasilev <[email protected]>
Signed-off-by: Oleg Vasilev <[email protected]>
Signed-off-by: Oleg Vasilev <[email protected]>
Signed-off-by: Oleg Vasilev <[email protected]>
Signed-off-by: Oleg Vasilev <[email protected]>
Signed-off-by: Oleg Vasilev <[email protected]>
Signed-off-by: Oleg Vasilev <[email protected]>
@Omrigan Omrigan marked this pull request as ready for review May 6, 2024 12:37
@Omrigan Omrigan requested a review from sharnoff May 6, 2024 14:49
pkg/util/taskgroup/LICENSE Show resolved Hide resolved
pkg/util/taskgroup/taskgroup.go Outdated Show resolved Hide resolved
pkg/util/taskgroup/taskgroup.go Outdated Show resolved Hide resolved
pkg/util/taskgroup/taskgroup.go Show resolved Hide resolved
Omrigan added 3 commits May 21, 2024 17:25
Signed-off-by: Oleg Vasilev <[email protected]>
Signed-off-by: Oleg Vasilev <[email protected]>
@Omrigan Omrigan requested a review from sharnoff May 23, 2024 09:36
pkg/util/taskgroup/taskgroup.go Outdated Show resolved Hide resolved
pkg/util/taskgroup/taskgroup.go Show resolved Hide resolved
pkg/util/taskgroup/taskgroup.go Outdated Show resolved Hide resolved
pkg/util/taskgroup/taskgroup.go Outdated Show resolved Hide resolved
pkg/agent/billing/billing.go Outdated Show resolved Hide resolved
pkg/agent/entrypoint.go Outdated Show resolved Hide resolved
pkg/agent/entrypoint.go Outdated Show resolved Hide resolved
Omrigan added 4 commits May 28, 2024 16:31
Signed-off-by: Oleg Vasilev <[email protected]>
Signed-off-by: Oleg Vasilev <[email protected]>
Signed-off-by: Oleg Vasilev <[email protected]>
@Omrigan Omrigan requested a review from sharnoff May 28, 2024 13:58
Signed-off-by: Oleg Vasilev <[email protected]>
pkg/agent/entrypoint.go Outdated Show resolved Hide resolved
Copy link
Member

@sharnoff sharnoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. Some finer details left, mostly relating to panic handling.

pkg/util/taskgroup/taskgroup.go Show resolved Hide resolved
pkg/util/taskgroup/taskgroup.go Outdated Show resolved Hide resolved
pkg/util/taskgroup/taskgroup.go Show resolved Hide resolved
Omrigan and others added 3 commits May 30, 2024 18:23
@Omrigan Omrigan requested a review from sharnoff May 31, 2024 10:47
pkg/util/taskgroup/taskgroup.go Outdated Show resolved Hide resolved
pkg/util/taskgroup/taskgroup_test.go Show resolved Hide resolved
pkg/util/taskgroup/taskgroup_test.go Outdated Show resolved Hide resolved
pkg/util/taskgroup/taskgroup_test.go Outdated Show resolved Hide resolved
pkg/agent/entrypoint.go Outdated Show resolved Hide resolved
@Omrigan Omrigan requested a review from sharnoff June 10, 2024 09:47
Copy link
Member

@sharnoff sharnoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, pending a couple comments :)

(I know this one took quite a while; thanks for sticking through it!)

pkg/util/taskgroup/taskgroup_test.go Show resolved Hide resolved
pkg/agent/entrypoint.go Outdated Show resolved Hide resolved
pkg/agent/entrypoint.go Outdated Show resolved Hide resolved
@Omrigan Omrigan enabled auto-merge (squash) June 17, 2024 13:25
@Omrigan Omrigan merged commit 3a61010 into main Jun 17, 2024
15 checks passed
@Omrigan Omrigan deleted the oleg/taskgroup branch June 17, 2024 13:32
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