mirror of https://github.com/rq/rq.git
Merge pull request #194 from selwin/master
Job.create should allow args to be passed in list format
This commit is contained in:
commit
bf802a15be
|
@ -72,7 +72,7 @@ class Job(object):
|
|||
args = ()
|
||||
if kwargs is None:
|
||||
kwargs = {}
|
||||
assert isinstance(args, tuple), '%r is not a valid args list.' % (args,)
|
||||
assert isinstance(args, (tuple, list)), '%r is not a valid args list.' % (args,)
|
||||
assert isinstance(kwargs, dict), '%r is not a valid kwargs dict.' % (kwargs,)
|
||||
job = cls(connection=connection)
|
||||
if inspect.ismethod(func):
|
||||
|
|
Loading…
Reference in New Issue