-
-
Notifications
You must be signed in to change notification settings - Fork 745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Orquestra task transition on failure for parallel tasks will not join #4810
Comments
In the current orquesta implementation, the |
Please see previous documented issue at StackStorm/orquesta#120. There is a workaround that you can try. |
In case the workaround is not clear, instead of using |
@m4dcoder Ah. In concrete terms, you are saying it is waiting on all defined incoming branches - so on parallel_task_1 there are 2 branches (one do is commented out), plus one branch from parallell_task_2 for a total of 3.
That means the above task had to succeed AND complete? Is that how tasks work (succeed --> complete and fail --> complete)? (I cannot find a state machine diagram for tasks). If so, I do understand that part. Regarding : StackStorm/orquesta#120. -- I agree with that one - that would be useful. |
@MichaelMcClure Yes, that's how current |
I will be closing this issue since this is already tracked in the orquesta repo. |
SUMMARY
When running tasks in parallel in Orquesta (forking the workflow), tasks that are parallel will not transition to the barrier task (the join task) when the parallel task has a defined task transition based on task failure.
Also working with @jdmeyer3 on this.
STACKSTORM VERSION
st2 3.1.0, on Python 2.7.5
Paste the output of
st2 --version
:OS, environment, install method
ENV: Docker
OS: Centos 7.6
Steps to reproduce the problem
With this workflow defined as so:
And the workflow Action defined as so:
Execute the workflow. It will execute tasks: setup_task, parallel_task_1, parallel_task_2, and barrier_task. ( This is expected and correct and not a defect).
Uncomment line 27 ( #do: barrier_task ) to include a task transition in the case of failure
Execute the workflow.
Expected Results
I expect the workflow to execute all the same tasks including the barrier_task. Like this:
Actual Results
It will execute tasks: setup_task, parallel_task_1, parallel_task_2, and stop. It will not execute the barrier task.
Attached are the workflows and the log output set on INFO - first block is the success case, 2nd block is the failure case
task_transition_bug.txt
The text was updated successfully, but these errors were encountered: