<@ULVA73B9P> is there a way to send a notification...
# ask-marvin
a
@Marvin is there a way to send a notification if a deployment is no longer active?
m
Let's look into this. I'll search the Prefect documentation and GitHub issues to determine if there's a way to send notifications for inactive deployments. I'll start by querying: 1. "deployment notification inactive" 2. "send alert for inactive deployment" Based on my search results, there's currently no direct feature in Prefect for sending a notification specifically when a deployment is no longer active. However, managing and toggling deployment activity in Prefect is covered within their recent updates and pull requests: 1. Support for Active/Inactive Schedules in `prefect.yaml`: Prefect now supports an
active
property on the
schedule
definition of a deployment within the
prefect.yaml
file. This can help manage whether a deployment's schedule is active or inactive. GitHub Pull Request #11608 2. Race Condition Protection for Deployment Schedules: There are efforts to handle race conditions when a deployment's schedule is marked inactive, ensuring auto-scheduled runs are deleted properly. GitHub Pull Request #6673 To implement notifications, you'd likely need to create a custom monitoring solution. This could involve: 1. Regularly checking the status of your deployments. 2. If a deployment is found inactive, triggering a notification via email, Slack, etc. Would you like an example of how to set up such monitoring using Prefect flows and tasks?
a
Nevermind. this is very easy to do with a block and an off the shelf automation