diff --git a/theodolite/src/main/kotlin/theodolite/execution/operator/BenchmarkStateChecker.kt b/theodolite/src/main/kotlin/theodolite/execution/operator/BenchmarkStateChecker.kt index 40f5b7ddbbfc9da4514b8a88946d97149b94b390..6dcfb582655ff9295aedd63d8c30cbac7daae2b3 100644 --- a/theodolite/src/main/kotlin/theodolite/execution/operator/BenchmarkStateChecker.kt +++ b/theodolite/src/main/kotlin/theodolite/execution/operator/BenchmarkStateChecker.kt @@ -24,7 +24,7 @@ class BenchmarkStateChecker( Thread { while (running) { updateBenchmarkStatus() - Thread.sleep(100 * 1) + Thread.sleep(1000) } }.start() } diff --git a/theodolite/src/main/kotlin/theodolite/execution/operator/TheodoliteController.kt b/theodolite/src/main/kotlin/theodolite/execution/operator/TheodoliteController.kt index 2b6f83c76ce6e31f85cdfec1962f9523c3d297b8..5f4180b0b4b58fa94b979c71998314baae63a91b 100644 --- a/theodolite/src/main/kotlin/theodolite/execution/operator/TheodoliteController.kt +++ b/theodolite/src/main/kotlin/theodolite/execution/operator/TheodoliteController.kt @@ -37,9 +37,9 @@ class TheodoliteController( */ fun run() { sleep(5000) // wait until all states are correctly set + benchmarkStateChecker.start(true) while (true) { reconcile() - benchmarkStateChecker.start(true) sleep(2000) } } @@ -98,11 +98,11 @@ class TheodoliteController( } else -> { executionStateHandler.setExecutionState(execution.name, ExecutionState.FAILURE) - logger.warn { "Unexpected execution state, set state to ${ExecutionState.FAILURE.value}" } + logger.warn { "Unexpected execution state, set state to ${ExecutionState.FAILURE.value}." } } } } catch (e: Exception) { - EventCreator().createEvent( + EventCreator().createEvent( executionName = execution.name, type = "WARNING", reason = "Execution failed",