Skip to content
This repository has been archived by the owner on Jan 10, 2019. It is now read-only.

job.get doesn't block? #11

Open
rybesh opened this issue Nov 17, 2011 · 3 comments
Open

job.get doesn't block? #11

rybesh opened this issue Nov 17, 2011 · 3 comments

Comments

@rybesh
Copy link

rybesh commented Nov 17, 2011

The documentation states that "default behaviour is to block indefinitely while waiting for a job," but that doesn't seem to happening. Instead job.get seems to be an async call, even when timeout is 0. I'm using [email protected], [email protected], and redis 2.4.2.

@fritzy
Copy link
Contributor

fritzy commented Nov 17, 2011

Sorry Ryan. This is an error in the documentation. What I meant to say is that the callback will wait forever on timeout of 0.

@rybesh
Copy link
Author

rybesh commented Nov 17, 2011

OK, so if the timeout is set to 0 the callback will never be called? How is that useful? (Not being snarky, just trying to understand.) If I want a process to sit and wait for jobs, handling them as they come in, how should I do that?

@rybesh
Copy link
Author

rybesh commented Nov 17, 2011

Never mind, I found the examples/ directory.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants