default task on error not running when task fail to evaluate input
Bug #1672379 reported by
Michal Gershenzon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mistral |
Invalid
|
Undecided
|
Unassigned |
Bug Description
To reproduce run the next workflow.
task `my_on_error`does not get executed even though task `bad_input_
---
version: "2.0"
def_on_
task-defaults:
on-error:
- my_on_error
tasks:
first:
action: std.noop
on-success:
- bad_input_
bad_
action: std.http
input:
url: <% $.url %>
my_on_error:
action: std.noop
To post a comment you must log in.
According the current semantics of "on-error" clause this isn't a bug. "on-error" handles only errors of actions, not errors related YAML syntax, expression evaluation, data flow logic etc. The situation in your example I think shows that there's a problem with the workflow definition (an attempt to use an invalid context variable), it doesn't make sense to handle it with "on-error".