-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): flow should not continue tasks when having a finally
- Loading branch information
1 parent
f1c147c
commit 9f12f9a
Showing
4 changed files
with
64 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
core/src/test/resources/flows/valids/finally-flow-error-first.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
id: finally-flow-error-first | ||
namespace: io.kestra.tests | ||
|
||
tasks: | ||
- id: ko | ||
type: io.kestra.plugin.core.execution.Fail | ||
|
||
- id: ok | ||
type: io.kestra.plugin.core.debug.Return | ||
format: "{{ task.id }}" | ||
|
||
finally: | ||
- id: a1 | ||
type: io.kestra.plugin.core.debug.Return | ||
format: "{{ task.id }}" |
18 changes: 18 additions & 0 deletions
18
core/src/test/resources/flows/valids/finally-sequential-error-first.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
id: finally-sequential-error-first | ||
namespace: io.kestra.tests | ||
|
||
tasks: | ||
- id: seq | ||
type: io.kestra.plugin.core.flow.Sequential | ||
tasks: | ||
- id: ko | ||
type: io.kestra.plugin.core.execution.Fail | ||
|
||
- id: ok | ||
type: io.kestra.plugin.core.debug.Return | ||
format: "{{ task.id }}" | ||
|
||
finally: | ||
- id: a1 | ||
type: io.kestra.plugin.core.debug.Return | ||
format: "{{ task.id }}" |