in workflow step if we want to return
in workflow step if we want to return not just from step also from workflow successfully what can we do, do you have any idea ? I mean is there any equivalent form of non retryable error
9 Replies
I don' t think I understand, can you please re-explain 😅
In the code if isCompleted true I want to exit from workflow but as I cant, I return as variable and then check that variable then exit

I ask is there any syntax like non retryable error to exit from workflow inside step
Not currently no.
Just to be sure, what you mean is that there may be more steps after that one but you don't want to run them, is that it?
yes if completed I dont want to run them
You can have the steps inside of the if.
Not sure if this is similar enough to what you want to do
TLDR: we don't expose a way to return early (from inside a step) but you can have parts of your workflow that run conditionally
then you dont suggest to return early in workflows like that, instead running steps conditionally right ?

I think that there is no harm done to be honest, if I think of a reason why you shouldn't I will get back to you 🙂
thx too much ur my savior 🙂