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

Merge branch 'fix-execution-event-handler' into 'master'

Fix bug while deleting a running exection

See merge request !181
parents eb63b0c8 11f3d654
No related branches found
No related tags found
1 merge request!181Fix bug while deleting a running exection
Pipeline #4706 passed
...@@ -80,7 +80,7 @@ class ExecutionHandler( ...@@ -80,7 +80,7 @@ class ExecutionHandler(
override fun onDelete(execution: ExecutionCRD, b: Boolean) { override fun onDelete(execution: ExecutionCRD, b: Boolean) {
logger.info { "Delete execution ${execution.metadata.name}" } logger.info { "Delete execution ${execution.metadata.name}" }
if (execution.status.executionState == States.RUNNING.value if (execution.status.executionState == States.RUNNING.value
&& this.controller.isExecutionRunning(execution.spec.name) && this.controller.isExecutionRunning(execution.metadata.name)
) { ) {
this.controller.stop() this.controller.stop()
} }
......
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