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

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

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

 ##########
 File path: sdks/python/apache_beam/io/iobase.py
 ##########
 @@ -1165,3 +1171,56 @@ def check_done(self):
       ~exceptions.ValueError: if there is still any unclaimed work remaining.
     """
     raise NotImplementedError
+
+
+class RestrictionProgress(object):
+  """Used to record the progress of a restriction.
+
+  Experimental; no backwards-compatibility guarantees.
+  """
+  def __init__(self, **kwargs):
+    # Only accept keyword arguments.
+    self._fraction = kwargs.pop('fraction', None)
 
 Review comment:
   Should we have this be a cumulative count of number of elements seen so far, 
or a fraction?
 
----------------------------------------------------------------
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: 202802)
    Time Spent: 50m  (was: 40m)

> 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: 50m
>  Remaining Estimate: 0h
>




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

Reply via email to