[ https://issues.apache.org/jira/browse/BEAM-7980?focusedWorklogId=298899&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-298899 ]
ASF GitHub Bot logged work on BEAM-7980: ---------------------------------------- Author: ASF GitHub Bot Created on: 21/Aug/19 19:00 Start Date: 21/Aug/19 19:00 Worklog Time Spent: 10m Work Description: tweise commented on pull request #9371: [BEAM-7980] External environment with containerized worker pool URL: https://github.com/apache/beam/pull/9371#discussion_r316351902 ########## File path: sdks/python/container/boot.go ########## @@ -59,6 +60,18 @@ const ( func main() { flag.Parse() + + if *workerPool == true { + args := []string{ + "-m", + "apache_beam.runners.worker.worker_pool_main", + "--service_port=50000", + "--container_executable=/opt/apache/beam/boot", + } + log.Printf("Starting Python SDK worker pool: python %v", strings.Join(args, " ")) + log.Fatalf("Python SDK worker pool exited: %v", execx.Execute("python", args...)) Review comment: I'm working on the locking that prevents multiple processes from downloading artifacts and running installation concurrently, since this needs to be done only once. I would prefer to defer this to a follow-up PR though. ---------------------------------------------------------------- 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: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 298899) Time Spent: 3.5h (was: 3h 20m) > External environment with containerized worker pool > --------------------------------------------------- > > Key: BEAM-7980 > URL: https://issues.apache.org/jira/browse/BEAM-7980 > Project: Beam > Issue Type: Improvement > Components: sdk-py-harness > Reporter: Thomas Weise > Assignee: Thomas Weise > Priority: Major > Time Spent: 3.5h > Remaining Estimate: 0h > > Augment Beam Python docker image and boot.go so that it can be used to launch > BeamFnExternalWorkerPoolServicer. > [https://docs.google.com/document/d/1z3LNrRtr8kkiFHonZ5JJM_L4NWNBBNcqRc_yAf6G0VI/edit#heading=h.lnhm75dhvhi0] > -- This message was sent by Atlassian Jira (v8.3.2#803003)