y1chi commented on pull request #13399:
URL: https://github.com/apache/beam/pull/13399#issuecomment-737412745


   > Would it be possible to mention that caching is used when it is rather 
when it is not? Or perhaps add a generic info message along the lines of: 
`Staging pipeline dependencies into a prebuilt container image. To optimize 
build time, build steps will be cached.`
   > 
   > Also do you know if a user can tell Kaniko to clean the cache manually?
   
   Whether cache is used in the docker build will be apparent in the build log 
and I think it will be more accurate than what we can log in beam workflow, see:
   - use cache: 
https://pantheon.corp.google.com/cloud-build/builds/8ee579d4-aa86-4c40-bb98-59d65160e223?project=beam-cloud-build-test
   - no cache layer found: 
https://pantheon.corp.google.com/cloud-build/builds/89f57168-b6e5-4327-a574-82e0767b4600?project=beam-cloud-build-test
   
   I don't know if user can tell directly clean the cache but caching can 
always be avoided if user specifies a more specific docker registry push url. 
(the caching scoped to push url for example if user pushes to 
gcr.io/project/sdk_container_version_1/beam_python_prebuilt_sdk:tag, the cache 
will only exist if user build container with the same 
`gcr.io/project/sdk_container_version_1` docker_registry_push_url)
   


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


Reply via email to