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

Scheduler.acquire_lock returns None instead of False #258

Closed
rahfar opened this issue Mar 4, 2021 · 0 comments
Closed

Scheduler.acquire_lock returns None instead of False #258

rahfar opened this issue Mar 4, 2021 · 0 comments

Comments

@rahfar
Copy link

rahfar commented Mar 4, 2021

During investigating main Scheduler class, found behavior of acquire_lock method, that does not match description:

Example:

from redis import Redis
from rq_scheduler import Scheduler
s = Scheduler(connection=Redis())
s.aquire_lock() # returns True
s.aquire_lock() # returns None instead of False

Environment: rq==1.7.0, rq-scheduler==0.10.0, redis==3.5.3, python3.8, ubuntu 20.04

@rahfar rahfar closed this as completed Mar 5, 2021
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