-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support failure node #840
Conversation
Signed-off-by: Ketan Umare <[email protected]>
Signed-off-by: Ketan Umare <[email protected]>
Signed-off-by: Ketan Umare <[email protected]>
Signed-off-by: Ketan Umare <[email protected]>
Signed-off-by: Ketan Umare <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #840 +/- ##
==========================================
- Coverage 86.22% 85.84% -0.38%
==========================================
Files 320 308 -12
Lines 23531 22965 -566
Branches 3464 3485 +21
==========================================
- Hits 20289 19714 -575
- Misses 2650 2651 +1
- Partials 592 600 +8 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Ketan Umare <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Ketan Umare <[email protected]>
Signed-off-by: Ketan Umare <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
flytekit/core/workflow.py
Outdated
) as inner_comp_ctx: | ||
# Now lets compile the failure-node if it exists | ||
if self.on_failure: | ||
# TODO: validate inputs match the workflow interface, with an extra param `err` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete all the todos
|
||
|
||
@dataclass | ||
class FlyteError(DataClassJSONMixin): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i do not think we need this right, though lets keep it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but i cannot approve
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Ketan Umare <[email protected]> Signed-off-by: Kevin Su <[email protected]> Co-authored-by: Kevin Su <[email protected]> Signed-off-by: Rafael Raposo <[email protected]>
Describe your changes
This PR adds a failure node in flytekit, which allows you to run another task/workflow (delete cluster or clean up resource) if the the workflow fails.
on_failure
to @workflow. people can pass a task/workflow to it.Example
Three workflows
flytectl demo start --dev make compile # compile the single binary flyte start --config flyte-single-binary-local.yaml pip install git+https://github.com/flyteorg/flytekit.git@2582a8bc16f80ab3a7101af8360e9d7212236e43 pyflyte run --remote workflow.py wf
Tracking issue
flyteorg/flyte#1506
Screenshots