Does anyone how to delete deployments and ensure s...
# ask-community
s
Does anyone how to delete deployments and ensure scheduled runs are deleted with them? Our current problem is: 1. We delete a deployment 2. This does not delete the scheduled flow runs attached to it 3. These flow runs try to execute 4. The worker looks up the deployment, and cannot find it 5. The worker begins to loop-crash 6. Every flow assigned to that worker gets blocked as the worker is dead Ideally deleting a deployment would mean automatically removing flow runs associated with it
4
👀 1
b
Hi Samuel! Thanks for sharing this. How are you doing this currently, just deleting a deployment through the UI?
s
Following this up showing a new batch of deleted deployments not deleting their scheduled flow runs:
👍 1
@Andrea Piccione tagging as relevant for you too
@Max Lewis-Clarke
b
I appreciate the additional context, thank you! I found an issue that seems to be related to what you're seeing. Would you be willing to add a comment sharing the details you provided here? And just to confirm, you're seeing this with 3.0, correct?
s
Yeah can confirm we're on Prefect 3