mirror of https://github.com/rq/rq.git
Fix bug where workers would not execute builtin functions properly.
This commit is contained in:
parent
d5f1740c3d
commit
66741fff7b
|
@ -1,3 +1,9 @@
|
|||
### 0.3.7
|
||||
(February 26th, 2013)
|
||||
|
||||
- Fixed bug where workers would not execute builtin functions properly.
|
||||
|
||||
|
||||
### 0.3.6
|
||||
(February 18th, 2013)
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ class Job(object):
|
|||
if inspect.ismethod(func):
|
||||
job._instance = func.im_self
|
||||
job._func_name = func.__name__
|
||||
elif inspect.isfunction(func):
|
||||
elif inspect.isfunction(func) or inspect.isbuiltin(func):
|
||||
job._func_name = '%s.%s' % (func.__module__, func.__name__)
|
||||
else: # we expect a string
|
||||
job._func_name = func
|
||||
|
|
Loading…
Reference in New Issue