示例#1
0
文件: workers.py 项目: tyrchen/fish
 def __init__(self, task, callback, daemon=False, host_list=get_gearman_host()):
   threading.Thread.__init__(self)
   self.task = task
   self.callback = callback
   self.daemon = daemon
   self.worker = Worker(host_list=host_list)
示例#2
0
文件: workers.py 项目: tyrchen/fish
 def __init__(self, host_list=get_gearman_host()):
   super(Worker, self).__init__(host_list=host_list)
示例#3
0
文件: clients.py 项目: tyrchen/fish
 def __init__(self, host_list=get_gearman_host(), *args, **kwargs):
   super(Client, self).__init__(host_list, *args, **kwargs)
示例#4
0
 def __init__(self, host_list=get_gearman_host()):
     self.continue_work = 10
     super(Worker, self).__init__(host_list=host_list)
示例#5
0
文件: admin.py 项目: tyrchen/fish
 def __init__(self, host_list=get_gearman_host(), *args, **kwargs):
   super(Admin, self).__init__(host_list=host_list, *args, **kwargs)
   self.host_list = host_list