Join Slack
Powered by
<@U02EFFCT5JP> Can someone share me good resources...
# ask-community
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
Serina
05/04/2023, 8:55 PM
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
5
Views
Open in Slack
Previous
Next