nvie/rq — pull request #466 by mtsgrd (2014-12-30 01:48:01+00:00)
Title: Pass named arguments to create a job in enqueue_call.

I'm subclassing `Queue` and `Job` to pass user authentication information to the background worker. This change makes it easier to access the explicit `kwargs` parameter in `Job.create`.
```
class MyJob(Job):

@classmethod
def create(cls, *args, **kwargs):
"""Adds authentication to RQ jobs"""
if 'kwargs' in kwargs:
user_id = kwargs['kwargs'].pop('user_id', None)
do_something(user_id)
super(YoJob, cls).create(*args, **kwargs)
```
Without this change, the explicit `kwargs` ends up in `args` for this overridden create function even though `kwargs` is a keyword argument in `Job.create`. Hope this makes sense.