示例#1
0
文件: worker.py 项目: pyople/pyople
 def __init__(self, procedure, needed, data, send_task, worker):
     self.procedure = procedure
     self.needed = needed
     self.has_kwargs = has_kwargs(needed) if needed else False
     self.data = data
     self.worker = worker
     self.send_task = send_task
示例#2
0
文件: worker.py 项目: pyople/pyople
 def __init__(self, procedure, needed, data, send_task, worker):
     self.procedure = procedure
     self.needed = needed
     self.has_kwargs = has_kwargs(needed) if needed else False
     self.data = data
     self.worker = worker
     self.send_task = send_task
示例#3
0
 def _has_kwargs(self):
     """Check if the arguments defined by the attribute needed has kwargs"""
     return has_kwargs(self.needed)
示例#4
0
 def _has_kwargs(self):
     """Check if the arguments defined by the attribute needed has kwargs"""
     return has_kwargs(self.needed)