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

Allow cleanup of only locks #86

Closed
freemansw1 opened this issue May 19, 2022 · 4 comments
Closed

Allow cleanup of only locks #86

freemansw1 opened this issue May 19, 2022 · 4 comments

Comments

@freemansw1
Copy link

I recently had an issue with a few of my jug processes being killed and therefore locks being kept on some active tasks. Normally, I would just delete the lock files in the jugdir, but I was using the Redis backend, so this was not possible. As suggested in the docs, I ran jug cleanup, expecting only the locks to be cleared; I was surprised to find the completed jobs cleared as well.

Is there any way to have jug cleanup only clear the locks? If not, can there be an option for this?

@luispedro
Copy link
Owner

  1. There is jug cleanup --only-locks
  2. Normally, jug cleanup should only clear old files. This is a bug with the redis backend!

@luispedro
Copy link
Owner

Thanks for the report; it is fixed on git now (and will be part of the next release)

luispedro added a commit that referenced this issue May 19, 2022
This was a big bug: the cleanup did not preserve the active tasks at all!

closes #86
luispedro added a commit that referenced this issue May 19, 2022
Backport fix for #86 for release
@luispedro
Copy link
Owner

I just released 2.2.1 which fixes this.

@freemansw1
Copy link
Author

Thanks so much for your incredibly rapid response!

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

No branches or pull requests

2 participants