leaf_engine_flows
Subpackages
Submodules
Functions
|
Custom Slack notification method. Can be used as state_handler for both |
|
Registers and runs flow on Prefect Server. |
Package Contents
- leaf_engine_flows.notify_slack(tracked_obj: prefect.Flow | prefect.Task, old_state: prefect.engine.state.State, new_state: prefect.engine.state.State) prefect.engine.state.State
Custom Slack notification method. Can be used as state_handler for both flows and tasks.
- Parameters:
tracked_obj (Union[Flow, Task]) – Flow or Task to notify about. Passed in by Prefect.
old_state (State) – State object passed in by Prefect.
new_state (State) – State object passed in by Prefect.
- Returns:
State object used by Prefect.
- Return type:
State