khuyentran1401 / prefect-alert

A decorator that sends alert when a Prefect flow fails

Home Page:https://khuyentran1401.github.io/prefect-alert/

Repository from Github https://github.comkhuyentran1401/prefect-alertRepository from Github https://github.comkhuyentran1401/prefect-alert

Adding task-level alert support

PPPSDavid opened this issue · comments

Hi, in the alert_on_failure function documentation it says the function could work for both flow and tasks, but the current repo only works for flow-level alerts. Is task-level support currently on the timeline?

I'm not sure where you saw that the decorator works for both flows and tasks, but currently, this decorator doesn't work with tasks. It is difficult to make this decorator work with task.submit and would require Prefect code base to change so this might take a couple of weeks to be implemented