summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2022-10-10 11:53:25 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2022-10-10 15:29:24 +0200
commit70630a40b54218ab8f8fd7a5e2dfb424d3dec378 (patch)
treecded6f58e9022c137f491d34123191c68836c47d
parent3624e37c847f6b4d45ad1abd6437c6e7cdb28dcd (diff)
fix(web/runner): Increase default job timeout
This change fixes an issue with the OpenDC web runner where the default job timeout was set to 10 ms instead of 10 minutes. For longer simulations, this would cause the job to be terminated.
-rw-r--r--opendc-web/opendc-web-runner/src/main/kotlin/org/opendc/web/runner/OpenDCRunner.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc-web/opendc-web-runner/src/main/kotlin/org/opendc/web/runner/OpenDCRunner.kt b/opendc-web/opendc-web-runner/src/main/kotlin/org/opendc/web/runner/OpenDCRunner.kt
index d4996198..1bc4e938 100644
--- a/opendc-web/opendc-web-runner/src/main/kotlin/org/opendc/web/runner/OpenDCRunner.kt
+++ b/opendc-web/opendc-web-runner/src/main/kotlin/org/opendc/web/runner/OpenDCRunner.kt
@@ -74,7 +74,7 @@ public class OpenDCRunner(
private val manager: JobManager,
private val tracePath: File,
parallelism: Int = Runtime.getRuntime().availableProcessors(),
- private val jobTimeout: Duration = Duration.ofMillis(10),
+ private val jobTimeout: Duration = Duration.ofMinutes(10),
private val pollInterval: Duration = Duration.ofSeconds(30),
private val heartbeatInterval: Duration = Duration.ofMinutes(1)
) : Runnable {