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

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

                Author: ASF GitHub Bot
            Created on: 19/Jan/22 21:27
            Start Date: 19/Jan/22 21:27
    Worklog Time Spent: 10m 
      Work Description: KevinGG commented on a change in pull request #16555:
URL: https://github.com/apache/beam/pull/16555#discussion_r788151258



##########
File path: sdks/python/apache_beam/runners/interactive/interactive_beam.py
##########
@@ -220,6 +220,24 @@ def display_timezone(self, value):
     """
     self._display_timezone = value
 
+  @property
+  def specified_cache_dir(self):
+    """The cache directory specified by the user.
+
+    Defaults to None.
+    """
+    return self._specified_cache_dir
+
+  @specified_cache_dir.setter

Review comment:
       This setter doesn't seem to take effect immediately for existing cache 
managers.
   
   There can be 2 behaviors:
   1. It overrides the cache dir for all existing 
ie.current_env()._cache_managers, evict all existing cache files (locally or on 
GCS, the GCS file deletion can be done in later PRs but add a TODO here) and 
log warnings.
   2. Notify the user that this only takes effect for new pipelines: restarting 
the kernel or re-execute pipeline creation codes.
   
   Also @rohdesamuel, which one do you think makes more sense?




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


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

    Worklog Id:     (was: 711673)
    Time Spent: 3h 10m  (was: 3h)

> Enable users to specify cache directory under Interactive Beam options
> ----------------------------------------------------------------------
>
>                 Key: BEAM-13685
>                 URL: https://issues.apache.org/jira/browse/BEAM-13685
>             Project: Beam
>          Issue Type: Task
>          Components: runner-py-interactive
>            Reporter: Victor Chen
>            Assignee: Victor Chen
>            Priority: P2
>          Time Spent: 3h 10m
>  Remaining Estimate: 0h
>
> - Adds specified_cache_dir option under interactive_beam.py and 
> interactive_options.py
>  - Integrates new specified_cache_dir from interactive_beam.py into 
> cache_manager.py and streaming_cache.py
>  - Includes unit tests under cache_manager_test.py and streaming_cache_test.py



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to