Skip to content
Snippets Groups Projects
Commit 881b6cc7 authored by Sören Henning's avatar Sören Henning
Browse files

Merge branch 'theodolite-kotlin' into rename-gradle-project

parents 5cd59807 ba4e8fba
No related branches found
No related tags found
2 merge requests!161Rename Theodolite Gradle project,!159Re-implementation of Theodolite with Kotlin/Quarkus
Pipeline #3917 passed
......@@ -53,10 +53,10 @@ class ExecutionHandler(
*/
@Synchronized
override fun onUpdate(oldExecution: ExecutionCRD, newExecution: ExecutionCRD) {
logger.info { "Receive update event for execution ${oldExecution.metadata.name}" }
newExecution.spec.name = newExecution.metadata.name
oldExecution.spec.name = oldExecution.metadata.name
if(gson.toJson(oldExecution.spec) != gson.toJson(newExecution.spec)) {
logger.info { "Receive update event for execution ${oldExecution.metadata.name}" }
when(this.stateHandler.getExecutionState(newExecution.metadata.name)) {
States.RUNNING -> {
this.stateHandler.setExecutionState(newExecution.spec.name, States.RESTART)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment