Bob Colner
05/02/2022, 12:24 PMstate_handlers
functionality in Orion/Prefect2.0. Is is on the roadmap? (or I’m I missing something..) thanksAnna Geller
Bob Colner
05/02/2022, 12:53 PMAnna Geller
Repeating if/then code blocks in every taskisn't it the same as what you would have to do in a state handler? if you look at the link I sent: #1 1.0 syntax
if new_state.is_failed():
#2 2.0 syntax:
if task_future.get_state().is_failed():
just to get basic ‘alert on failure’ behaviorregarding that, we agree with you, and we're working on some very cool features to provide you with highly flexible yet still easy to use ways of implementing such alerts - follow the #announcements channel in the next months, it will be 🔥 amazing
Bob Colner
05/02/2022, 2:08 PMstate_handlers
task parameter/API. E.g. state_handlers=slack_notifier(only_states=[Failed, Retrying])