Join Slack
Powered by
Hi, In 1.0 one of task arguments is state_handlers...
# ask-community
p
Patrick Tan
08/09/2022, 3:01 PM
Hi, In 1.0 one of task arguments is state_handlers but it is not in 2.0. What is the new way of invoking state handlers?
k
Khuyen Tran
08/09/2022, 3:08 PM
just to make sure I understand the context, what do you want to do with state handlers?
p
Patrick Tan
08/09/2022, 3:16 PM
To send Slack message when flow run fail. I found this, should be good:
https://discourse.prefect.io/t/how-to-take-action-on-a-state-change-of-a-task-run-task-level-state-handler/82
k
Khuyen Tran
08/09/2022, 3:20 PM
Yes, you can also do exactly that through the UI. I wrote an
article on how to do that
👍 1
2
Views
Open in Slack
Previous
Next