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

Automatic lock release on task apply_async #21

Open
tbrien opened this issue May 4, 2020 · 0 comments
Open

Automatic lock release on task apply_async #21

tbrien opened this issue May 4, 2020 · 0 comments

Comments

@tbrien
Copy link

tbrien commented May 4, 2020

I am using celery-signleton on a project and it saved us a bunch of headaches.
Thank you !

We encountered some exploitation trouble when restarting some workers and have implemented a way to challenge a singleton lock every time a task is submitted.
Doing so, an implementation for scanning celery worker state (see #17 ) and releasing the lock (see #3 ) have been made.
Since the two previous issues are related subjects, this new behavior might be merge. Of course, such behavior has no guaranties to have predictable implementations as the worker state cannot be known for sure. We used it on tasks scheduled regularly where the chances of having a schedule and a worker or scheduler restart simultaneously where very low.

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

1 participant