[
https://issues.apache.org/jira/browse/BEAM-6655?focusedWorklogId=203281&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-203281
]
ASF GitHub Bot logged work on BEAM-6655:
----------------------------------------
Author: ASF GitHub Bot
Created on: 24/Feb/19 19:00
Start Date: 24/Feb/19 19:00
Worklog Time Spent: 10m
Work Description: chamikaramj commented on pull request #7819:
[BEAM-6655] Initial support for progress reporting over the FnAPI.
URL: https://github.com/apache/beam/pull/7819#discussion_r259599298
##########
File path: sdks/python/apache_beam/io/restriction_trackers.py
##########
@@ -102,6 +103,16 @@ def current_restriction(self):
def current_watermark(self):
return self._current_watermark
+ def current_progress(self):
+ with self._lock:
+ if self._current_position is None:
+ fraction = 0.0
+ else:
+ fraction = (
+ float(self._current_position - self._range.start)
+ / (self._range.stop - self._range.start))
Review comment:
Assert (self._range.stop > self._range.start) before this ?
----------------------------------------------------------------
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: 203281)
Time Spent: 1h 10m (was: 1h)
> 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: 1h 10m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)