-
Notifications
You must be signed in to change notification settings - Fork 394
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
db-cleanup -> keep last X entries (instead of age based cleaning) #105
Comments
We implemented something close to this a year ago, keeping all failed and the last five successful runs. I provide our code if you want to take it further because I don't have the time to test it in latest airflow.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I see db-cleanup can delete entries in DB older than X days... (and keep the last one).
Is/ would it be possible to change this logic to keep last X entries?
Reason behind this is that some tasks dun daily some monthly, I even have yearly report... and keeping 'last' days can be a bit problematic... I've impletemented my own log clean up (local as well as remote in my case) that keeps lat X entries regardless of age. I am looking for same solution for DB cleanup
The text was updated successfully, but these errors were encountered: