From 697a4a89f8b95ff08c1f64db49337b4f46ca5f5f Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Sun, 20 May 2012 16:45:54 +0200 Subject: [PATCH] Actually use any given default_timeout for queues. --- rq/queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rq/queue.py b/rq/queue.py index 8b34573..3872a20 100644 --- a/rq/queue.py +++ b/rq/queue.py @@ -122,7 +122,7 @@ class Queue(object): 'Functions from the __main__ module cannot be processed ' 'by workers.') - timeout = kwargs.pop('timeout', None) + timeout = kwargs.pop('timeout', self._default_timeout) job = Job.create(f, *args, connection=self.connection, **kwargs) return self.enqueue_job(job, timeout=timeout)