Hi everyone. We currently have a task which shoul...
# prefect-community
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?
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: https://docs-v1.prefect.io/core/idioms/pause-for-approval.html#pause-for-approval https://docs-v1.prefect.io/orchestration/concepts/cloud_hooks.html#slack-cloud-hook You could also set the timeout and have a state handler to send a slack notification on the failed state for manual intervention: https://docs-v1.prefect.io/orchestration/concepts/cloud_hooks.html#slack-cloud-hook