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

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

                Author: ASF GitHub Bot
            Created on: 20/Dec/19 23:39
            Start Date: 20/Dec/19 23:39
    Worklog Time Spent: 10m 
      Work Description: davidyan74 commented on pull request #10442: 
[BEAM-8335] On Unbounded Source change
URL: https://github.com/apache/beam/pull/10442#discussion_r360608502
 
 

 ##########
 File path: 
sdks/python/apache_beam/runners/interactive/background_caching_job.py
 ##########
 @@ -75,14 +77,16 @@ def is_background_caching_job_needed(user_pipeline):
   return (has_source_to_cache(user_pipeline) and
           # Checks if it's the first time running a job from the pipeline.
           (not background_caching_job_result or
-           # Or checks if there is no valid previous job.
+           # Or checks if there is no previous job.
            background_caching_job_result.state not in (
                # DONE means a previous job has completed successfully and the
                # cached events are still valid.
                runners.runner.PipelineState.DONE,
                # RUNNING means a previous job has been started and is still
                # running.
-               runners.runner.PipelineState.RUNNING)))
+               runners.runner.PipelineState.RUNNING) or
+           # Or checks if we can invalidate the previous job.
+           is_unbounded_source_changed(user_pipeline)))
 
 Review comment:
   Similar to the reason why we use has_source_to_cache() above instead of 
has_unbounded_source(), we need to see whether any of the sources to cache has 
changed. So perhaps we should change this to something like 
cache_sources_changed()
 
----------------------------------------------------------------
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]


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

    Worklog Id:     (was: 361961)
    Time Spent: 50h 10m  (was: 50h)

> Add streaming support to Interactive Beam
> -----------------------------------------
>
>                 Key: BEAM-8335
>                 URL: https://issues.apache.org/jira/browse/BEAM-8335
>             Project: Beam
>          Issue Type: Improvement
>          Components: runner-py-interactive
>            Reporter: Sam Rohde
>            Assignee: Sam Rohde
>            Priority: Major
>          Time Spent: 50h 10m
>  Remaining Estimate: 0h
>
> This issue tracks the work items to introduce streaming support to the 
> Interactive Beam experience. This will allow users to:
>  * Write and run a streaming job in IPython
>  * Automatically cache records from unbounded sources
>  * Add a replay experience that replays all cached records to simulate the 
> original pipeline execution
>  * Add controls to play/pause/stop/step individual elements from the cached 
> records
>  * Add ability to inspect/visualize unbounded PCollections



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to