jack03/23/2023, 6:00 PM
Chris White03/23/2023, 7:32 PM
jack03/23/2023, 8:34 PM
callback to point to a function
We wanted the same functionality for
, but since it doesn't exist yet, I've added these lines at the top of the flow to manually call
using the same signature as when the callback happens.
It would be tidier for this use case if the
context = get_run_context() send_slack_message(context.flow, context.flow_run, context.flow_run.state)
callback worked. It seems odd to call a callback manually. With prefect v1 we used the same callback for any state change. Then we got slack messages for retries as well.