lostluck commented on code in PR #41744:
URL: https://github.com/apache/beam/pull/41744#discussion_r4733718382


##########
sdks/go/pkg/beam/runners/universal/runnerlib/job.go:
##########
@@ -50,6 +53,33 @@ type JobOptions struct {
 
        // Loopback indicates this job is running in loopback mode and will 
reconnect to the local process.
        Loopback bool
+
+       // Dial, if set, opens connections to the job service and artifact
+       // staging endpoint. Execute does not close what Dial returns; the
+       // caller owns the connection. Dial is invoked once per endpoint
+       // (job and artifact may differ). Returning a new connection each
+       // call leaks those connections. If nil, Execute uses grpcx.Dial
+       // and closes the connection when done.
+       Dial DialFunc

Review Comment:
   In which situations is this intended to work?
   
   Is it intended for just the main program when it submits the job to a runner?
   
   Is it intended for use on workers? If so, please put an explicit instruction 
that it must be configured prior to beam.Init in order to be executed and used 
worker side.
   
   Is this supposed to work with the in process prism runner for testing 
purposes?



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