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

Infinite loop when reserving jobs #22

Closed
fbjork opened this issue Oct 10, 2011 · 2 comments
Closed

Infinite loop when reserving jobs #22

fbjork opened this issue Oct 10, 2011 · 2 comments

Comments

@fbjork
Copy link

fbjork commented Oct 10, 2011

When using the latest qu-mongo the following message keeps repeating in my development.log

Reserving job in queue sync_friends
Reserving job in queue sync_friends
Reserving job in queue sync_friends
Reserving job in queue sync_friends
Reserving job in queue sync_friends

Any idea what's going?

@fbjork
Copy link
Author

fbjork commented Oct 10, 2011

Looking at the source code it looks like debug logging only. It's pretty verbose and fills up the development log pretty fast. Perhaps it can be removed or set as an option?

@bkeepers
Copy link
Owner

The loop is definitely intentional. By default, the #reserve method blocks until it has a job to work on.

I'm fine with changing the log, or you could set a custom logger:

  Qu.logger = Logger.new('log/qu.log')
  Qu.logger.level = Logger::INFO

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