mirror of https://github.com/sbt/sbt.git
Extend supershell close timeout
Fixes #6592 Problem ------- On Heroku there's timeout. Solution -------- This seems to be coming from supershell closing the executor. Extend the timeout to 30s.
This commit is contained in:
parent
a448b1caab
commit
e3afa845ec
|
|
@ -70,8 +70,9 @@ private[sbt] class TaskProgress(
|
|||
pending.clear()
|
||||
scheduler.shutdownNow()
|
||||
executor.shutdownNow()
|
||||
if (!executor.awaitTermination(1, TimeUnit.SECONDS) ||
|
||||
!scheduler.awaitTermination(1, TimeUnit.SECONDS)) {
|
||||
if (!executor.awaitTermination(30, TimeUnit.SECONDS) ||
|
||||
!scheduler.awaitTermination(30, TimeUnit.SECONDS)) {
|
||||
scala.Console.err.println("timed out closing the executor of supershell")
|
||||
throw new TimeoutException
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue