-
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): avoid restarting errors task (#1056)
close #1032
- Loading branch information
1 parent
c78cb93
commit 922e5a2
Showing
8 changed files
with
147 additions
and
10 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
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 |
27 changes: 27 additions & 0 deletions
27
core/src/test/resources/flows/valids/restart_local_errors.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,27 @@ | ||
id: restart_local_errors | ||
namespace: io.kestra.tests | ||
|
||
tasks: | ||
- id: before | ||
type: io.kestra.core.tasks.debugs.Echo | ||
format: I'm before | ||
|
||
- id: sequential | ||
type: io.kestra.core.tasks.flows.Sequential | ||
tasks: | ||
- id: close | ||
type: io.kestra.core.tasks.debugs.Echo | ||
format: I'm close to fail | ||
- 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}} | ||
|
||
- id: after | ||
type: io.kestra.core.tasks.debugs.Echo | ||
format: I'm after |
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