[
https://issues.apache.org/jira/browse/BEAM-6655?focusedWorklogId=208874&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-208874
]
ASF GitHub Bot logged work on BEAM-6655:
----------------------------------------
Author: ASF GitHub Bot
Created on: 06/Mar/19 14:55
Start Date: 06/Mar/19 14:55
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_r262972838
##########
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:
Changed to return a 1 in this case.
----------------------------------------------------------------
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: 208874)
Time Spent: 2h (was: 1h 50m)
> 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: 2h
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)