damccorm opened a new issue, #20321:
URL: https://github.com/apache/beam/issues/20321

   A couple of Beam users mentioned a usecase where some  initialization code 
needs to run on Python workers before pipeline processing starts.
   
   Such code needs to be executed run early in the main() method of python 
worker[1].
   
   Java SDK has provides this capability  via JvmInitializer [2], BEAM-6872. 
Let's add such capability for Python users as well.
   
   [1] 
https://github.com/apache/beam/blob/7ad4c4c8e601e39573aae7b4d778be2e908a0868/sdks/python/apache_beam/runners/worker/sdk_worker_main.py#L85
   [2] 
https://github.com/apache/beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/harness/JvmInitializer.java
   
   Imported from Jira 
[BEAM-10039](https://issues.apache.org/jira/browse/BEAM-10039). Original Jira 
may contain additional context.
   Reported by: tvalentyn.


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