Github user kayousterhout commented on a diff in the pull request:

    https://github.com/apache/spark/pull/892#discussion_r13451548
  
    --- Diff: 
core/src/main/scala/org/apache/spark/scheduler/TaskSetManager.scala ---
    @@ -54,8 +54,15 @@ private[spark] class TaskSetManager(
         clock: Clock = SystemClock)
       extends Schedulable with Logging
     {
    +  // Remember when this TaskSetManager is created
    +  val creationTime = clock.getTime()
       val conf = sched.sc.conf
     
    +  // The period we wait for new executors to come up
    +  // After this period, tasks in pendingTasksWithNoPrefs will be 
considered as PROCESS_LOCAL
    +  private val WAIT_NEW_EXEC_TIMEOUT = 
conf.getLong("spark.scheduler.waitNewExecutorTime", 3000L)
    --- End diff --
    
    Is this something the application can just do: if it wants to wait 3 
seconds before scheduling anything on non-local executors, just sleep for 3 
seconds before trying to launch any jobs?  I'm wary of adding more config 
options to the scheduler.


---
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.
---

Reply via email to