[
https://issues.apache.org/jira/browse/GOBBLIN-1493?focusedWorklogId=630825&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-630825
]
ASF GitHub Bot logged work on GOBBLIN-1493:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 28/Jul/21 22:51
Start Date: 28/Jul/21 22:51
Worklog Time Spent: 10m
Work Description: arjun4084346 commented on a change in pull request
#3336:
URL: https://github.com/apache/gobblin/pull/3336#discussion_r678703598
##########
File path:
gobblin-restli/gobblin-flow-config-service/gobblin-flow-config-service-server/src/main/java/org/apache/gobblin/service/FlowExecutionResourceLocalHandler.java
##########
@@ -199,4 +206,20 @@ public static FlowExecution
convertFlowStatus(org.apache.gobblin.service.monitor
private static long
getFlowStartTime(org.apache.gobblin.service.monitoring.FlowStatus flowStatus) {
return flowStatus.getFlowExecutionId();
}
+
+ /**
+ * Estimate the time left to complete the copy based on the following
formula -
+ * timeLeft = (100/completionPercentage) * timeElapsed
+ */
+ public static long estimateCopyTimeLeft(Long currentTime, Long startTime,
int completionPercentage) {
+ if (completionPercentage == 0) {
+ return 0;
+ }
+
+ Instant current = Instant.ofEpochMilli(currentTime);
+ Instant start = Instant.ofEpochMilli(startTime);
+ Long timeBetween = Duration.between(start, current).toMillis();
Review comment:
Is not in simply `currentTime - startTime` ? Or did I miss something?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 630825)
Time Spent: 5h (was: 4h 50m)
> Data Copy Progress Reporting
> -----------------------------
>
> Key: GOBBLIN-1493
> URL: https://issues.apache.org/jira/browse/GOBBLIN-1493
> Project: Apache Gobblin
> Issue Type: New Feature
> Components: gobblin-core, gobblin-service
> Reporter: Urmi Mustafi
> Assignee: Abhishek Tiwari
> Priority: Major
> Time Spent: 5h
> Remaining Estimate: 0h
>
> Progress reporting for a data copy will provide users with quantitative
> feedback on the progress of a data copy job as a percentage as well as an
> estimate of the time remaining for completion. This will update the existing
> job status endpoint to include the progress percentage and estimate of time
> left.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)