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

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

                Author: ASF GitHub Bot
            Created on: 09/Apr/20 07:21
            Start Date: 09/Apr/20 07:21
    Worklog Time Spent: 10m 
      Work Description: robertwb commented on pull request #11314: [BEAM-9562] 
Send Timers over Data Channel as Elements
URL: https://github.com/apache/beam/pull/11314#discussion_r405999346
 
 

 ##########
 File path: sdks/python/apache_beam/runners/worker/data_plane.py
 ##########
 @@ -372,12 +428,18 @@ def input_elements(self,
             t, v, tb = self._exc_info
             raise_(t, v, tb)
         else:
-          # TODO(BEAM-9558): Cleanup once dataflow is updated.
-          if not data.data or data.is_last:
-            done_transforms.add(data.transform_id)
-          else:
-            assert data.transform_id not in done_transforms
-            yield data
+          if isinstance(element, beam_fn_api_pb2.Elements.Timer):
+            if element.is_last:
+              done_inputs.add((element.transform_id, element.timer_family_id))
+            else:
+              yield element
+          if isinstance(element, beam_fn_api_pb2.Elements.Data):
 
 Review comment:
   elif
 
----------------------------------------------------------------
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: 419197)
    Time Spent: 17h 20m  (was: 17h 10m)

> Remove timer from PCollection and treat timers as Elements 
> -----------------------------------------------------------
>
>                 Key: BEAM-9562
>                 URL: https://issues.apache.org/jira/browse/BEAM-9562
>             Project: Beam
>          Issue Type: New Feature
>          Components: sdk-java-harness, sdk-py-harness
>            Reporter: Boyuan Zhang
>            Assignee: Boyuan Zhang
>            Priority: Major
>             Fix For: 2.21.0
>
>          Time Spent: 17h 20m
>  Remaining Estimate: 0h
>




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

Reply via email to