Skip to content

Commit

Permalink
AIP-7511 user defined @exit_handler
Browse files Browse the repository at this point in the history
  • Loading branch information
talebzeghmi committed Nov 30, 2023
1 parent e75b38f commit ee87619
Show file tree
Hide file tree
Showing 9 changed files with 506 additions and 81 deletions.
2 changes: 2 additions & 0 deletions metaflow/plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,14 @@ def get_plugin_cli():
from .aws.step_functions.schedule_decorator import ScheduleDecorator
from .project_decorator import ProjectDecorator
from .aip.s3_sensor_decorator import S3SensorDecorator
from .aip.exit_handler_decorator import ExitHandlerDecorator

FLOW_DECORATORS = [
CondaFlowDecorator,
ScheduleDecorator,
ProjectDecorator,
S3SensorDecorator,
ExitHandlerDecorator,
]
_merge_lists(FLOW_DECORATORS, _ext_plugins["FLOW_DECORATORS"], "name")

Expand Down
5 changes: 5 additions & 0 deletions metaflow/plugins/aip/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@
delete_argo_workflow,
to_metaflow_run_id,
)

from .exit_handler_decorator import (
exit_handler_resources,
exit_handler_retry,
)
Loading

0 comments on commit ee87619

Please sign in to comment.