From d6e875119a0c850dd2400cc3b2ddf8b2ee8e9637 Mon Sep 17 00:00:00 2001 From: Dmitriy Sorokin Date: Tue, 10 Oct 2017 12:14:35 +0300 Subject: [PATCH] Add at_front option for decorated functions --- rq/decorators.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rq/decorators.py b/rq/decorators.py index 2b43961..857a7d2 100644 --- a/rq/decorators.py +++ b/rq/decorators.py @@ -44,8 +44,9 @@ class job(object): # noqa else: queue = self.queue depends_on = kwargs.pop('depends_on', None) + at_front = kwargs.pop('at_front', False) return queue.enqueue_call(f, args=args, kwargs=kwargs, timeout=self.timeout, result_ttl=self.result_ttl, - ttl=self.ttl, depends_on=depends_on) + ttl=self.ttl, depends_on=depends_on, at_front=at_front) f.delay = delay return f