Ngone51 commented on code in PR #36162: URL: https://github.com/apache/spark/pull/36162#discussion_r891316334
########## core/src/main/scala/org/apache/spark/scheduler/TaskSetManager.scala: ########## @@ -800,6 +814,10 @@ private[spark] class TaskSetManager( info.markFinished(TaskState.FINISHED, clock.getTimeMillis()) if (speculationEnabled) { successfulTaskDurations.insert(info.duration) + inefficientTaskCalculator.foreach { inefficientTask => + inefficientTask.updateTaskProgressThreshold(result) + inefficientTask.removeRuningTasksProgressRate(tid) Review Comment: I think we can just inline `removeRuningTasksProgressRate` into `updateTaskProgressThreshold` since there's no where else invokes `removeRuningTasksProgressRate`. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org