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

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

                Author: ASF GitHub Bot
            Created on: 21/Feb/19 08:59
            Start Date: 21/Feb/19 08:59
    Worklog Time Spent: 10m 
      Work Description: robertwb commented on pull request #7819: [BEAM-6655] 
Initial support for progress reporting over the FnAPI.
URL: https://github.com/apache/beam/pull/7819#discussion_r258832162
 
 

 ##########
 File path: sdks/python/apache_beam/runners/worker/bundle_processor.py
 ##########
 @@ -148,8 +148,13 @@ def try_split(self, fraction_of_remainder, 
total_buffer_size):
         # We are "finished" with the (non-existent) previous element.
         current_element_progress = 1
       else:
-        # TODO(SDF): Get actual progress of current element.
-        current_element_progress = 0.5
+        current_element_progress_object = (
+            self.receivers[0].current_element_progress())
+        if current_element_progress_object is None:
+          current_element_progress = 0.5
 
 Review comment:
   We don't return this value, but use it in the computations below. We know 
we're *somewhere* in the element, so half way is a reasonable choice in the 
absence of more specific data. 
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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: 201818)
    Time Spent: 40m  (was: 0.5h)

> Support progress reporting over FnAPI
> -------------------------------------
>
>                 Key: BEAM-6655
>                 URL: https://issues.apache.org/jira/browse/BEAM-6655
>             Project: Beam
>          Issue Type: New Feature
>          Components: beam-model, sdk-java-harness, sdk-py-harness
>            Reporter: Robert Bradshaw
>            Priority: Major
>          Time Spent: 40m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to