You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Steven Rosenberry (JIRA)" <ji...@apache.org> on 2019/02/13 19:20:00 UTC

[jira] [Created] (SPARK-26872) Use a configurable value for final termination in the JobScheduler.stop() method

Steven Rosenberry created SPARK-26872:
-----------------------------------------

             Summary: Use a configurable value for final termination in the JobScheduler.stop() method
                 Key: SPARK-26872
                 URL: https://issues.apache.org/jira/browse/SPARK-26872
             Project: Spark
          Issue Type: Improvement
          Components: Scheduler
    Affects Versions: 2.4.0
            Reporter: Steven Rosenberry


As a user of Spark, I would like to configure the timeout that controls final termination after stopping the streaming context and processing previously queued jobs.  Currently, there is a hard-coded limit of one hour around line 129 in JobScheduler.stop():
{code:java}
// Wait for the queued jobs to complete if indicated
val terminated = if (processAllReceivedData) {
jobExecutor.awaitTermination(1, TimeUnit.HOURS) // just a very large period of time
} else {
jobExecutor.awaitTermination(2, TimeUnit.SECONDS)
}
{code}
It would provide additional functionality to the Spark platform if this value was configurable.  My use case may take many hours to finish the queued job as it was created from a large data file.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org