Skip to content

What conditions does {{workflow.status}} in ExitHandler use to determine success or failure? #12768

Closed Answered by agilgur5
panicboat asked this question in Q&A
Discussion options

You must be logged in to vote

What conditions does {{workflow.status}} in ExitHandler use to determine success or failure?

As this is an exit handler, it uses the status just before to determine success or failure. Your first step was successful, and so it gets Succeeded.

Perform the following steps in the ExitHandler, and if one of the steps fails, the Workflow itself marks it as failed, but a successful step returns success.

The Workflow's final status is purely based on the status of the final node, which, in this example, included a step that exited non-zero and so was reported as a Failure.

This is indeed a bit confusing, I believe there is an issue or something about this somewhere (need to check). There sho…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@panicboat
Comment options

Answer selected by panicboat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/templating Templating with `{{...}}` area/exit-handler
2 participants