Skip to content

Commit ca2c9c5

Browse files
committed
Add a config to set driver terminate timeout
1 parent 473d755 commit ca2c9c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/scala/org/apache/spark/deploy/worker/DriverRunner.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ private[deploy] class DriverRunner(
5757
@volatile private[worker] var finalException: Option[Exception] = None
5858

5959
// Timeout to wait for when trying to terminate a driver.
60-
private val DRIVER_TERMINATE_TIMEOUT_MS = 10 * 1000
60+
private val DRIVER_TERMINATE_TIMEOUT_MS =
61+
conf.getTimeAsMs("spark.worker.driverTerminateTimeout", "10s")
6162

6263
// Decoupled for testing
6364
def setClock(_clock: Clock): Unit = {

0 commit comments

Comments
 (0)