Coder Social home page Coder Social logo

queues's People

Watchers

James Cloos avatar

queues's Issues

No timeout for Redis queue

I'd like to add a socket timeout to the Redis queue.  Here's a diff:

https://gist.github.com/9de7323fae027fde59a1

Original issue reported on code.google.com by [email protected] on 1 Apr 2010 at 6:56

Change (or alias) redisd to redis.

I imagine using the name redis would be more user friendly than using redisd 
for the redis backend name.

I propose renaming it or aliasing it to redis for new users.

I can send a patch if this is something you think is reasonable.

Original issue reported on code.google.com by [email protected] on 25 Jan 2012 at 9:41

beanstalkd backend doesn't work with latest beanstalkd

What steps will reproduce the problem?
1. Install current beanstalkd 1.4.6
2. Install queues 0.6.1
3. Attempt to write and read to the queue

I believe the backend needs to be updated to use the .watch(NAME) method on the 
beanstalk connection, and I think the reads also need to use the timeout to 
beanstalk's reserve() method, so that the backend can return None if there is 
nothing in the queue rather than waiting for something to arrive.



Original issue reported on code.google.com by [email protected] on 4 Feb 2011 at 3:50

Redis backend should use blpop.

A blocking read is often useful when dealing with a queue. The consumer most 
times should sleep until a message becomes available.

This might be possible in other backends as well, I know Redis has a blpop 
method for just this purpose. The Queue.read() method should either take an 
optional blocking param (ignored in backends that don't support it) or a 
blocking_read() method should be added.

Original issue reported on code.google.com by [email protected] on 2 Feb 2012 at 3:42

Invalid backend name results in weird behaviour.

What steps will reproduce the problem?
>>> import os
>>> os.environ['QUEUE_BACKEND'] = 'redis'
>>> from queues import queues
>>> q = queues.Queue('foo')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'Queue'

What is the expected output? What do you see instead?

I would expect an error when importing queues.queues. If it can't find that 
backend, I should know about it explicitly.

Something like what happens if you don't specify QUEUE_REDIS_CONNECTION.

What version of the product are you using? On what operating system?

trunk, Linux.

Please provide any additional information below.

I will send a patch if you agree that this should be changed.

Original issue reported on code.google.com by [email protected] on 25 Jan 2012 at 9:39

Beanstalkc requires jobs to be str (not unicode)

What steps will reproduce the problem?
1. Attempt to put a unicode message with beanstalkc backend

What version of the product are you using? On what operating system?
Latest versions of each, as at September 2011.

Please provide any additional information below.

See https://github.com/earl/beanstalkc/blob/master/beanstalkc.py#L124 - I think 
queues needs to convert messages to str before put. I have changed line 46 of 
queues/backends/beanstalkd.py from

                return self._connection.put(message)

to

                return self._connection.put(str(message))


Original issue reported on code.google.com by [email protected] on 13 Sep 2011 at 3:51

Add support for UNIX socket in the redis backend

First of all, thanks for this software.

I have attached a patch which adds support for using a UNIX socket in the redis 
backend. This works with the redis-py library.

BTW I'm maintaining a friendly fork that contains this change if anyone is 
interested:
https://bitbucket.org/bgneal/queues

Original issue reported on code.google.com by [email protected] on 4 Jan 2015 at 1:10

Attachments:

Redis backend has dead code.

In the redis backend, in Queue.__init__ kwargs are prepared, but never passed 
to _get_connection(). The kwargs are again prepared within _get_connection(). 
The duplication should be removed, it was confusing to me at first.

http://code.google.com/p/queues/source/browse/trunk/queues/backends/redisd.py#40
http://code.google.com/p/queues/source/browse/trunk/queues/backends/redisd.py#50

I would suggest removing one of these two duplicated sets of code.

I can send a patch if you think this is reasonable.

Original issue reported on code.google.com by [email protected] on 25 Jan 2012 at 9:43

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.