Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting a deployment does not delete corresponding scheduled runs #15697

Open
0leg-st opened this issue Oct 15, 2024 · 2 comments
Open

Deleting a deployment does not delete corresponding scheduled runs #15697

0leg-st opened this issue Oct 15, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@0leg-st
Copy link

0leg-st commented Oct 15, 2024

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)

Version:             3.0.0
API version:         0.8.4
Python version:      3.12.5
Git commit:          c40d069d
Built:               Tue, Sep 3, 2024 11:13 AM
OS/Arch:             linux/aarch64
Profile:             ephemeral
Server type:         server
Pydantic version:    2.8.2

Additional context

No response

@0leg-st 0leg-st added the bug Something isn't working label Oct 15, 2024
@mvdb-enspi
Copy link

mvdb-enspi commented Oct 17, 2024

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?

@mvdb-enspi
Copy link

To give some more context, there are no error logs for the Prefect server and I use Postgres as the database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants