elsa-workflows / elsa-workflows/elsa-core

Retry issue while using Parent-Child Workflows

Open
#6,566 0 comments 0 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
7.9k
Forks
1.5k
Avg merge
15h 22m
Merged PRs (30d)
114

Description

Hello, I'm using Elsa 2.15.1 and trying to develop complex workflow which will contain multiple layered nested worfklows.

There are problem in cases, when some of child workflow will fail and after manual retry from dashboard of this child workflow finished successfully, parent workflow doesn't continues execution

I know that retry parent workflow will continue child workflows but when stcuture is multi layered, I don't want to retry all activities of child workflow.

example:

- Parent Workflow
- Child Workflow 1
- Child Workflow 1.1
- Child Workflow 1.2
- Child Workflow 1.3
- Child Workflow 2
- Child Workflow 2.1
- Child Workflow 2.2

If Child Workflow 1.3 will fail. it will cause failing of parent and grandparent workflows and if I retry Parent Workflow, this will cause retry all nested workflows and i my case it bad idea. If I try to retry Child Workflow 1.3 in positive scenario it will finish execution but Child Workflow 1 and Parent workflow remaining in faulted state

Did you have some suggestion how to handle such cases? Thanks (edited)

Steps to reproduce scenario:

1. Download demo project
2. Unzip and run (Elsa Dashboard should open in browser)
3. curl -get https://localhost:7266/start

first execution of process will fail. After retry TestWorkflow3 from Elsa dashboard, execution of workflow will continue and finishes successfully, but TestWorkflow2 and TestWorkflow1 remaining Faulted State

[WorkflowRetryDemo.zip](https://github.com/user-attachments/files/19634582/WorkflowRetryDemo.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.