-
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(#1032): avoid restarting errors task
As they else they will run un-conditionnaly and the flow will be SUCCESSFUL
- Loading branch information
1 parent
ae18ca3
commit f41756e
Showing
5 changed files
with
77 additions
and
8 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
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
14 changes: 14 additions & 0 deletions
14
core/src/test/resources/flows/valids/restart_always_failed.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,14 @@ | ||
id: restart_always_failed | ||
namespace: io.kestra.tests | ||
|
||
tasks: | ||
- id: failStep | ||
type: io.kestra.core.tasks.scripts.Bash | ||
description: "This fails" | ||
commands: | ||
- 'exit 1' | ||
errors: | ||
- id: errorHandler | ||
type: io.kestra.core.tasks.debugs.Echo | ||
format: I'm failing {{task.id}} | ||
level: INFO |
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