Skip to content

Commit

Permalink
Merge pull request rq#888 from karech/master
Browse files Browse the repository at this point in the history
Add at_front option for decorated functions
  • Loading branch information
selwin authored Oct 24, 2017
2 parents 154488a + d6e8751 commit 90bf8f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rq/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ def delay(*args, **kwargs):
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

0 comments on commit 90bf8f0

Please sign in to comment.