|
|
@ -514,16 +514,13 @@ class Job(object):
|
|
|
|
if self.func_name is None:
|
|
|
|
if self.func_name is None:
|
|
|
|
return None
|
|
|
|
return None
|
|
|
|
|
|
|
|
|
|
|
|
# Python 2/3 compatibility
|
|
|
|
arg_list = [as_text(repr(arg)) for arg in self.args]
|
|
|
|
try:
|
|
|
|
|
|
|
|
arg_list = [repr(arg).decode('utf-8') for arg in self.args]
|
|
|
|
|
|
|
|
except AttributeError:
|
|
|
|
|
|
|
|
arg_list = [repr(arg) for arg in self.args]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
kwargs = ['{0}={1!r}'.format(k, v) for k, v in self.kwargs.items()]
|
|
|
|
kwargs = ['{0}={1!r}'.format(k, v) for k, v in self.kwargs.items()]
|
|
|
|
# Sort here because python 3.3 & 3.4 makes different call_string
|
|
|
|
# Sort here because python 3.3 & 3.4 makes different call_string
|
|
|
|
arg_list += sorted(kwargs)
|
|
|
|
arg_list += sorted(kwargs)
|
|
|
|
args = ', '.join(arg_list)
|
|
|
|
args = ', '.join(arg_list)
|
|
|
|
|
|
|
|
|
|
|
|
return '%s(%s)' % (self.func_name, args)
|
|
|
|
return '%s(%s)' % (self.func_name, args)
|
|
|
|
|
|
|
|
|
|
|
|
def cleanup(self, ttl=None, pipeline=None):
|
|
|
|
def cleanup(self, ttl=None, pipeline=None):
|
|
|
|