From bac15700b5d56f4fdc68882f6f70e19f62755338 Mon Sep 17 00:00:00 2001 From: Sergey Chelombitko Date: Mon, 30 Dec 2024 12:50:59 +0000 Subject: [PATCH] Interrupt blocking tasks upon build cancellation --- .../main/kotlin/com/malinskiy/marathon/worker/WorkerContext.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/marathon-gradle-plugin/src/main/kotlin/com/malinskiy/marathon/worker/WorkerContext.kt b/marathon-gradle-plugin/src/main/kotlin/com/malinskiy/marathon/worker/WorkerContext.kt index bd0142019..3a9388f7d 100644 --- a/marathon-gradle-plugin/src/main/kotlin/com/malinskiy/marathon/worker/WorkerContext.kt +++ b/marathon-gradle-plugin/src/main/kotlin/com/malinskiy/marathon/worker/WorkerContext.kt @@ -44,7 +44,7 @@ internal class WorkerContext(configuration: Configuration) : WorkerHandler { override fun close() { isRunning.set(false) componentsChannel.close() - executor.shutdown() + executor.shutdownNow() marathon.close() application.close() }