Skip to content

How to abort a failing step and have the step status Failed? #531

Open
@knoxi

Description

@knoxi

Hello @danielgerlag

Our scenario;
I have a workflow which has at a point a step waiting for data from an API, following by another step which transforms the data and deliver it to another API.
When the sending step cannot deliver the data, the step retries exponentially a few times and then the step should be skipped/aborted. The workflow should then continue waiting for new data.

My problem is now that I'm not able to abort the sending step, so the step has the status Failed. I was only able to complete the step by catching and ignoring the exception and return a valid ExecutionResult.
But I'd like to have a step with the status Failed, so we can see on our dashboard, where we visualize the workflow steps, if a step had an error.

Questions:
Is this possible by the current version? How do we set the current step status to Failed from our step implemetation? Overriding the step status to Failed seems to have no effect, it ends up in Completed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions