Channels
announcements
ask-marvin
best-practices-coordination-plane
data-ecosystem
data-tricks-and-tips
events
find-a-prefect-job
geo-bay-area
geo-berlin
geo-boston
geo-chicago
geo-colorado
geo-dc
geo-israel
geo-japan
geo-london
geo-nyc
geo-seattle
geo-texas
gratitude
introductions
marvin-in-the-wild
pacc-clearcover-june-12-2023
pacc-may-31-2023
ppcc-may-16-2023
prefect-ai
prefect-aws
prefect-azure
prefect-cloud
prefect-community
prefect-contributors
prefect-dbt
prefect-docker
prefect-gcp
prefect-getting-started
prefect-integrations
prefect-kubernetes
prefect-recipes
prefect-server
prefect-ui
random
show-us-what-you-got
Powered by
Title
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
#prefect-community
Join Slack