File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
core/src/main/scala/org/apache/spark Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -175,10 +175,15 @@ private class LiveTask(
175175 }
176176
177177 override protected def doUpdate (): Any = {
178- val duration = if (info.finished) {
179- info.duration
178+ var duration : Long = 0
179+ var executorRunTime : Long = 0
180+
181+ if (info.finished) {
182+ duration = info.duration
183+ executorRunTime = metrics.executorRunTime
180184 } else {
181- info.timeRunning(lastUpdateTime.getOrElse(System .currentTimeMillis()))
185+ duration = info.timeRunning(lastUpdateTime.getOrElse(System .currentTimeMillis()))
186+ executorRunTime = duration
182187 }
183188
184189 new TaskDataWrapper (
@@ -198,7 +203,7 @@ private class LiveTask(
198203
199204 metrics.executorDeserializeTime,
200205 metrics.executorDeserializeCpuTime,
201- metrics. executorRunTime,
206+ executorRunTime,
202207 metrics.executorCpuTime,
203208 metrics.resultSize,
204209 metrics.jvmGcTime,
Original file line number Diff line number Diff line change @@ -848,7 +848,7 @@ private[ui] class TaskPagedTable(
848848 </div >
849849 </td >
850850 <td >{UIUtils .formatDate(task.launchTime)}</td >
851- <td >{formatDuration(task.duration )}</td >
851+ <td >{formatDuration(task.taskMetrics.map(_.executorRunTime) )}</td >
852852 <td class ={TaskDetailsClassNames .SCHEDULER_DELAY }>
853853 {UIUtils .formatDuration(AppStatusUtils .schedulerDelay(task))}
854854 </td >
You can’t perform that action at this time.
0 commit comments