AydarZaynutdinov commented on a change in pull request #16277:
URL: https://github.com/apache/beam/pull/16277#discussion_r772439908



##########
File path: playground/backend/internal/environment/environment_service.go
##########
@@ -137,6 +140,17 @@ func GetNetworkEnvsFromOsEnvs() (*NetworkEnvs, error) {
 func ConfigureBeamEnvs(workDir string) (*BeamEnvs, error) {
        sdk := pb.Sdk_SDK_UNSPECIFIED
        preparedModDir, modDirExist := os.LookupEnv(preparedModDirKey)
+
+       numOfParallelJobs := defaultNumOfParallelJobs
+       if value, present := os.LookupEnv(numOfParallelJobsKey); present {
+               convertedValue, err := strconv.Atoi(value)
+               if err != nil {
+                       logger.Errorf("Incorrect value for %s. Should be 
integer. Will be used default value: %d", numOfParallelJobsKey, 
defaultNumOfParallelJobs)

Review comment:
       Yes here I try to get this value from the environment, but if it doesn't 
exist or if it is set up with an incorrect value then I just log it and use the 
default value.




-- 
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]


Reply via email to