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

RedisSimpleQueue().get(block=False) does not work as expected #700

Open
matroskin8 opened this issue Jun 23, 2023 · 0 comments
Open

RedisSimpleQueue().get(block=False) does not work as expected #700

matroskin8 opened this issue Jun 23, 2023 · 0 comments
Assignees

Comments

@matroskin8
Copy link

matroskin8 commented Jun 23, 2023

Describe the bug
Readme claims RedisSimpleQueue is compatible with Python’s SimpleQueue, but RedisSimpleQueue().get(block=False` blocks forever

To Reproduce
Steps to reproduce the behavior:

from pottery import RedisSimpleQueue
q = RedisSimpleQueue(redis=redis, key='1')
q.get(block=False)
  • never relaese

Expected behavior
queue.SimpleQueue() rises an Empty error. Expect that queue.SimpleQueue() do the same.

Environment (please complete the following information):

  • OS: [e.g. macOS, Linux]

    uname -a
    Darwin xxx 20.6.0 Darwin Kernel Version 20.6.0: Wed Nov 10 22:23:05 PST 2021; root:xnu-7195.141.14~1/RELEASE_ARM64_T8101 arm64

  • Python version 3.9.15

  • Redis version 6.2.5

@brainix brainix self-assigned this Aug 1, 2023
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