-
Notifications
You must be signed in to change notification settings - Fork 334
refactor(job): use goroutine to unmarshal task result #4245
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
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4245 +/- ##
==========================================
+ Coverage 32.52% 32.90% +0.38%
==========================================
Files 350 352 +2
Lines 41382 41781 +399
==========================================
+ Hits 13459 13748 +289
- Misses 27034 27140 +106
- Partials 889 893 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Signed-off-by: jinronga <1460595002@qq.com> Signed-off-by: “jinrong” <1460595002@qq.com>
- Use `errgroup` instead of `sync.WaitGroup` and `sync.Once` - Optimize error handling logic to directly return the first error - Adjust variable scope to avoid potential loop variable capture issues - Code style adjustments to improve readability Signed-off-by: “jinrong” <1460595002@qq.com>
- Add GroupJobStateConcurrencyLimit constant to limit the number of concurrent goroutines - Implement the concurrency limit in GetGroupJobState function using errgroup - Refactor error handling in task result unmarshalling for better readability Signed-off-by: “jinrong” <1460595002@qq.com>
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.
LGTM
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.
lgtm
Description
Related Issue
Motivation and Context
Screenshots (if appropriate)
Types of changes
Checklist