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

Improve logs cleanup reliability #1

Merged
merged 5 commits into from
Apr 10, 2019
Merged

Conversation

fredrikaverpil
Copy link
Owner

@fredrikaverpil fredrikaverpil commented Apr 10, 2019

Rather than querying the db for job cmd-logs to delete, query the db for job cmd-logs to keep.

Then delete everything else. This successfully deletes any old log hanging around on disk without a corresponding job in the db.

@fredrikaverpil fredrikaverpil merged commit 64d8d74 into master Apr 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant