prdai commented on code in PR #58827:
URL: https://github.com/apache/airflow/pull/58827#discussion_r2596202646
##########
go-sdk/pkg/bundles/shared/discovery.go:
##########
@@ -147,60 +150,66 @@ func (d *Discovery) DiscoverBundles(ctx context.Context)
error {
if err != nil {
self = ""
}
+ maxProcesses := runtime.GOMAXPROCS(0)
+ g, ctx := errgroup.WithContext(ctx)
+ g.SetLimit(maxProcesses)
Review Comment:
its dynamically determined at runtime, its not exactly to scale processes up
or down, more of for us to be able to utilize the maximum no. of processes to
whatever device in which this code is executed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]