Unexpected task execution created after failed task rerun
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mistral |
Triaged
|
High
|
Unassigned |
Bug Description
In short, if we rerun one of two tasks linked by on-complete clause, new unexpected task execution will be created for the second task.
More detailed description:
Let's assume we have such WF definition. Tasks 1-2-3 linked with on-complete clause:
test_wf:
type: direct
tasks:
t1:
action: some_action_1
on-complete:
- t2
t2:
action: some_action_2
on-complete:
- t3
t3:
action: some_action_3
on-success:
- t4
t4:
action: some_action_4
After first execution actions some_action_2 and some_action_3 failed for some reason, so we have next workflow execution structure:
test_wf [state=ERROR]
executions:
t1 [execution_
t2 [execution_
t3 [execution_
So we rerun task t2 with PUT request to <mistral_
test_wf [state=ERROR]
executions:
t1 [execution_
t2 [execution_
t3 [execution_
t3 [execution_
Looks like new t3 execution (with id=t3_exec_id_2) shouldn't have been created in this case. Instead, t3_exec_id_1 should've been rerun by Mistral.
Hi, what DB are you using?