https://prefect.io logo
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
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