tvalentyn commented on code in PR #17498:
URL: https://github.com/apache/beam/pull/17498#discussion_r861855914
##########
sdks/python/apache_beam/runners/dataflow/dataflow_runner.py:
##########
@@ -471,10 +471,19 @@ def run_pipeline(self, pipeline, options,
pipeline_proto=None):
options.view_as(WorkerOptions).sdk_container_image = (
self._default_environment.container_image)
else:
+ artifacts = environments.python_sdk_dependencies(options)
+ if artifacts and apiclient._use_fnapi(options):
+ _LOGGER.info(
+ "Pipeline has additional dependencies to be installed "
+ "in SDK worker container, consider using the SDK "
+ "container image pre-building workflow to avoid "
+ "repetitive installations. Learn more on "
+ "https://cloud.google.com/dataflow/docs/guides/"
+ "using-custom-containers#prebuild")
Review Comment:
Could you PTAL at
https://beam.apache.org/documentation/sdks/python-pipeline-dependencies/#pre-building-sdk-container-image
? Sounds like
https://beam.apache.org/documentation/sdks/python-pipeline-dependencies/
should be referenced there, if your prefer the latter to be the source of
truth, and so that we don't replicate content when not necessary.
THanks.
--
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]