Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

``get_queue`` now accepts ``async`` and ``default_timeout`` arguments.

  • Loading branch information...
commit a57ee600a18a9c7cc796efc0cbe2d8a1eab4909c 1 parent ed0cd0f
Selwin Ong selwin authored

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. +3 2 django_rq/queues.py
5 django_rq/queues.py
@@ -31,11 +31,12 @@ def get_connection_by_index(index):
31 31 return get_redis_connection(QUEUES_LIST[index]['connection_config'])
32 32
33 33
34   -def get_queue(name='default'):
  34 +def get_queue(name='default', default_timeout=None, async=True):
35 35 """
36 36 Returns an rq Queue using parameters defined in ``RQ_QUEUES``
37 37 """
38   - return Queue(name, connection=get_connection(name))
  38 + return Queue(name, default_timeout=default_timeout,
  39 + connection=get_connection(name), async=async)
39 40
40 41
41 42 def get_queue_by_index(index):

0 comments on commit a57ee60

Please sign in to comment.
Something went wrong with that request. Please try again.