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
s
sjammula
05/04/2023, 8:43 PM
@prefect
Can someone share me good resources to get started in prefect2.0 statehandler
✅ 1
s
Serina
05/04/2023, 8:54 PM
Hi
@sjammula
, if you’re referring to our state change hooks-- we are looking to add documentation soon! Here is the tracking issue
https://github.com/PrefectHQ/prefect/issues/9391
Meanwhile, our release notes show usage examples
https://github.com/PrefectHQ/prefect/blob/main/RELEASE-NOTES.md#on_crashed-state-change-hook-for-flows
https://github.com/PrefectHQ/prefect/blob/main/RELEASE-NOTES.md#on_completion-and-on_failure-hooks-for-flows-and-tasks
s
sjammula
05/05/2023, 3:54 AM
@Serina G
I need to send info to cloudwatch when state changes ,I'm looking for documentation around that area,where in Prefect1 we did make use of statehandler and now it is deprecated right as part of Prefect2?
s
Serina
05/05/2023, 2:51 PM
Instead of a
state_handler
param you would now pass in
on_failure
,
on_completion
, and/or
on_crashed
3 Views
#prefect-community
Join Slack