Bradley Collins

09/08/2022, 12:30 PM
Hi everyone. We currently have a task which should take roughly 8 hours to finish running. This pipeline (wrapped in a task) is still in development and now and again it will not terminate. From what I can tell we can set a timeout in Prefect on the long running task but in this case we do not want to stop the task but rather send out a Slack notification to enable manual intervention. Is there a pattern/feature in Prefect 1.0 that allows for this?

Rob Freedy

09/09/2022, 2:48 PM
Hey Bradley!! There are a couple of suggestions here: You could use a Pause signal after a certain amount of time and send a slack notification from there: You could also set the timeout and have a state handler to send a slack notification on the failed state for manual intervention: