yaql function errors() to access task errors in path
This was achieved by a function with a different name. See more info here: https:/
Old description:
For a WF with task-defaults to send/notify details on-error, there's no easy way in the error handler to know which task failed and failure information. Can we add a custom errors() function that returns a list of failed tasks in the WF execution path and their state_info & result?
Blueprint information
- Status:
- Complete
- Approver:
- Renat Akhmerov
- Priority:
- Medium
- Drafter:
- Winson Chan
- Direction:
- Needs approval
- Assignee:
- Michal Gershenzon
- Definition:
- Approved
- Series goal:
- Accepted for ocata
- Implementation:
- Implemented
- Milestone target:
- ocata-2
- Started by
- Renat Akhmerov
- Completed by
- Michal Gershenzon
Related branches
Related bugs
Sprints
Whiteboard
I think this method should provide a list of all tasks (error can be passed as desired state).
If we will return all states, we can find another name instead of "errors" e.g tasks.
it should have a few parameters:
1. workflow-
2. recursive (optional default False) - if true, list failed tasks for sub-workflows executions as well. relevant when passing workflow-
3. leaves (optional default False) - if true, only list the root tasks that failed, and not the tasks that were failed due to the sub-workflow-
4. state (optional)- get only tasks with the given state for example ERROR
The new idea also overlaps with https:/
Gerrit topic: https:/
Addressed by: https:/
Yaql Tasks Function