Remove unused hasPendingTasks methods
This commit is contained in:
parent
19672dca32
commit
8419148e5f
|
@ -117,8 +117,4 @@ private[spark] class Pool(
|
||||||
parent.decreaseRunningTasks(taskNum)
|
parent.decreaseRunningTasks(taskNum)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override def hasPendingTasks(): Boolean = {
|
|
||||||
schedulableQueue.exists(_.hasPendingTasks())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,5 +42,4 @@ private[spark] trait Schedulable {
|
||||||
def executorLost(executorId: String, host: String): Unit
|
def executorLost(executorId: String, host: String): Unit
|
||||||
def checkSpeculatableTasks(): Boolean
|
def checkSpeculatableTasks(): Boolean
|
||||||
def getSortedTaskSetQueue(): ArrayBuffer[TaskSetManager]
|
def getSortedTaskSetQueue(): ArrayBuffer[TaskSetManager]
|
||||||
def hasPendingTasks(): Boolean
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -365,13 +365,6 @@ private[spark] class TaskSchedulerImpl(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for pending tasks in all our active jobs.
|
|
||||||
def hasPendingTasks: Boolean = {
|
|
||||||
synchronized {
|
|
||||||
rootPool.hasPendingTasks()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
def executorLost(executorId: String, reason: ExecutorLossReason) {
|
def executorLost(executorId: String, reason: ExecutorLossReason) {
|
||||||
var failedExecutor: Option[String] = None
|
var failedExecutor: Option[String] = None
|
||||||
|
|
||||||
|
|
|
@ -681,10 +681,6 @@ private[spark] class TaskSetManager(
|
||||||
return foundTasks
|
return foundTasks
|
||||||
}
|
}
|
||||||
|
|
||||||
override def hasPendingTasks(): Boolean = {
|
|
||||||
numTasks > 0 && tasksSuccessful < numTasks
|
|
||||||
}
|
|
||||||
|
|
||||||
private def getLocalityWait(level: TaskLocality.TaskLocality): Long = {
|
private def getLocalityWait(level: TaskLocality.TaskLocality): Long = {
|
||||||
val defaultWait = System.getProperty("spark.locality.wait", "3000")
|
val defaultWait = System.getProperty("spark.locality.wait", "3000")
|
||||||
level match {
|
level match {
|
||||||
|
|
Loading…
Reference in a new issue