Closed igcherkaev closed 4 years ago
I can confirm I see this on some of my workflows too. As a workaround I check the .length() of the array in a prior task with core.noop action. If the length is 0 then I skip the with_items task.
Yeah, as a temp workaround it's fine to add empty array tests, but it'd be nice for the engine to handle it properly (mistral did :P)
SUMMARY
Orquesta workflow with a sub workflow with "with items" task gets stuck in the running state when empty array is passed for that task
STACKSTORM VERSION
Paste the output of
st2 --version
:OS, environment, install method
CentOS 7 install following the docs at: https://docs.stackstorm.com/install/rhel7.html
Steps to reproduce the problem
I have the following two workflows:
wf_orquesta_stuck1.meta.yaml:
workflows/wf_orquesta_stuck1.yaml:
And the sub workflow:
__wf_orquesta_stuck_sub.meta.yaml__:
__workflows/wf_orquesta_stuck_sub.yaml__:
Expected Results
The parent workflow to finish when empty array is passed.
Actual Results
The parent workflow gets stuck in the RUNNING state and never finishes.
workflow engine logs: