Skip to content

Commit bd9c9c8

Browse files
author
Istemi Ekin Akkus
committed
fix: management service deleteWorkflow allows deletion of workflows with status 'failed'
1 parent cf8f67b commit bd9c9c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ManagementService/python/deleteWorkflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def handle(value, sapi):
3939
wf = sapi.get(email + "_workflow_" + workflow["id"], True)
4040
if wf is not None and wf != "":
4141
wf = json.loads(wf)
42-
if wf["status"] == "undeployed":
42+
if wf["status"] == "undeployed" or wf["status"] == "failed":
4343
for wn in workflows:
4444
if workflows[wn] == workflow["id"]:
4545
del workflows[wn]

0 commit comments

Comments
 (0)