youngoli commented on a change in pull request #14397:
URL: https://github.com/apache/beam/pull/14397#discussion_r606626542



##########
File path: sdks/go/pkg/beam/runners/dataflow/dataflow.go
##########
@@ -181,11 +183,15 @@ func Execute(ctx context.Context, p *beam.Pipeline) 
(beam.PipelineResult, error)
        if err != nil {
                return nil, err
        }
-       enviroment, err := graphx.CreateEnvironment(ctx, 
jobopts.GetEnvironmentUrn(ctx), getContainerImage)
+       environment, err := graphx.CreateEnvironment(ctx, 
jobopts.GetEnvironmentUrn(ctx), getContainerImage)
        if err != nil {
                return nil, errors.WithContext(err, "generating model pipeline")
        }
-       model, err := graphx.Marshal(edges, &graphx.Options{Environment: 
enviroment})
+       model, err := graphx.Marshal(edges, &graphx.Options{Environment: 
environment})
+       if err != nil {
+               return nil, errors.WithContext(err, "generating model pipeline")
+       }
+       err = pipelinex.ApplySdkImageOverrides(model, 
jobopts.GetSdkImageOverrides())
        if err != nil {
                return nil, errors.WithContext(err, "generating model pipeline")

Review comment:
       Done, also updated the one a few lines above.




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to