Open 0leg-st opened 1 month ago
Noticed the same on Prefect 3.0.3.
Version: 3.0.3
API version: 0.8.4
Python version: 3.10.11
Git commit: d9c51bc3
Built: Fri, Sep 20, 2024 8:52 AM
OS/Arch: linux/x86_64
Profile: local
Server type: server
Pydantic version: 2.9.2
Integrations:
prefect-docker: 0.6.1
prefect-aws: 0.5.0
Like you said, it doesn't happen consistently but once so often. In the meantime, is there an easy way to delete scheduled runs with a non-existent deployment?
To give some more context, there are no error logs for the Prefect server and I use Postgres as the database.
Hello! Any news about the matter or additional infos you could give us ? Is this indeed a bug you're aware of or are we missing something on our side?
@0leg-st I'm not 100% sure, since I didn't experiment with it, but I suspect the issue is caused when the new deployment somehow is no longer connected to the old one. In my case it happened because I changed the DockerImage
name in the deploy
function.
Bug summary
Deleting a deployment does not always delete all the scheduled runs that correspond to this deployment. If runs are not deleted, the system tries to execute them and falls into an infinite loop once the deployment is not found. Problem occurs 1 time in 10 without apparent reason.
Version info (
prefect version
output)Additional context
No response