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

Unlock locked task #382

Open
danielbattat opened this issue Nov 16, 2021 · 1 comment
Open

Unlock locked task #382

danielbattat opened this issue Nov 16, 2021 · 1 comment

Comments

@danielbattat
Copy link

I noticed my tasks weren't running and that removing preventOverlapping() solved the issue. However, I would like to keep preventOverlapping.

I used ps and saw that I had a /vendor/bin/crunz process running for more than a week. A killed the processes, thinking that would free the lock, but that didn't help. How can I free this lock?

Also, is there any mechanism in Crunz that would have prevented this from happening? Maybe kill the lock after X amount of time passed, or after X runs were skipped?

@PabloKowalczyk
Copy link
Collaborator

Hello, do you use default backend for locks? By default Crunz uses https://symfony.com/doc/current/components/lock.html#flockstore which, should, release lock on process end.

Another question is why Crunz runs for more than week?

You can pass any lock backend supported by Symfony.

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