VictorPlusC commented on a change in pull request #16555:
URL: https://github.com/apache/beam/pull/16555#discussion_r789160242
##########
File path:
sdks/python/apache_beam/runners/interactive/interactive_environment.py
##########
@@ -359,10 +359,14 @@ def get_cache_manager(self, pipeline,
create_if_absent=False):
manager for the pipeline."""
cache_manager = self._cache_managers.get(str(id(pipeline)), None)
if not cache_manager and create_if_absent:
- cache_dir = tempfile.mkdtemp(
- suffix=str(id(pipeline)),
- prefix='it-',
- dir=os.environ.get('TEST_TMPDIR', None))
+ from apache_beam.runners.interactive import interactive_beam as ib
+ if ib.options.specified_cache_dir:
+ cache_dir = ib.options.specified_cache_dir
Review comment:
Noted this suggestion down in our design doc, will be adding this logic
with the GCS support in a separate PR.
--
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]