sarutak commented on a change in pull request #32381:
URL: https://github.com/apache/spark/pull/32381#discussion_r623301421
##########
File path: core/src/main/scala/org/apache/spark/ui/jobs/AllJobsPage.scala
##########
@@ -66,7 +70,9 @@ private[ui] class AllJobsPage(parent: JobsTab, store:
AppStatusStore) extends We
private def makeJobEvent(jobs: Seq[v1.JobData]): Seq[String] = {
jobs.filter { job =>
job.status != JobExecutionStatus.UNKNOWN && job.submissionTime.isDefined
- }.map { job =>
+ }.sortBy { j =>
+ -math.max(j.submissionTime.get.getTime,
j.completionTime.map(_.getTime).getOrElse(-1L))
Review comment:
I reconsidered that we should choose `System.currentTimeMillis` rather
than `-1` because it's a in progress job/stage.
O.K, let's sort by both start and end (I have no time today so I'll do it
tommorrow).
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]