[ 
https://issues.apache.org/jira/browse/BEAM-8351?focusedWorklogId=323644&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-323644
 ]

ASF GitHub Bot logged work on BEAM-8351:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 04/Oct/19 18:19
            Start Date: 04/Oct/19 18:19
    Worklog Time Spent: 10m 
      Work Description: violalyu commented on pull request #9730: [BEAM-8351] 
Support passing in arbitrary KV pairs to sdk worker via external environment 
config
URL: https://github.com/apache/beam/pull/9730#discussion_r331627588
 
 

 ##########
 File path: sdks/python/apache_beam/runners/portability/portable_runner.py
 ##########
 @@ -129,11 +129,25 @@ def _create_environment(options):
               env=(config.get('env') or '')
           ).SerializeToString())
     elif environment_urn == common_urns.environments.EXTERNAL.urn:
+      def _looks_like_json(environment_config):
+        import re
+        return re.match(r'\{.+\}', environment_config)
 
 Review comment:
   Thanks Chad! Updated for now in 
https://github.com/apache/beam/pull/9730/commits/7fed22b5ad4c845770bac84944c4743b77495367!
 
----------------------------------------------------------------
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]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 323644)
    Time Spent: 1.5h  (was: 1h 20m)

> Support passing in arbitrary KV pairs to sdk worker via external environment 
> config
> -----------------------------------------------------------------------------------
>
>                 Key: BEAM-8351
>                 URL: https://issues.apache.org/jira/browse/BEAM-8351
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-py-core, sdk-py-harness
>            Reporter: Wanqi Lyu
>            Assignee: Wanqi Lyu
>            Priority: Minor
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> Originally, the environment config for environment type of EXTERNAL only 
> support passing in an url for the external worker pool; We want to support 
> passing in arbitrary KV pairs to sdk worker via external environment config, 
> so that the when starting the sdk harness we could get the values from 
> `StartWorkerRequest.params`.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to