Github user zsxwing commented on a diff in the pull request:
https://github.com/apache/spark/pull/16473#discussion_r95463901
--- Diff: core/src/main/scala/org/apache/spark/scheduler/TaskInfo.scala ---
@@ -120,4 +121,12 @@ class TaskInfo(
}
private[spark] def timeRunning(currentTime: Long): Long = currentTime -
launchTime
+
+ def duration(metrics : Option[TaskMetricsUIData]): Long = {
--- End diff --
Sorry. Looks like adding this method UIDate is better. Then you don't need
to pass `metrics` to this method. Please also update
https://github.com/apache/spark/blob/dbf842b7a8479f9566146192ffc04421591742d5/core/src/main/scala/org/apache/spark/ui/jobs/StagePage.scala#L890
to use this new method so that we can keep these two places always consistent.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]