Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 def __init__(self, host_list=get_gearman_host()):
   super(Worker, self).__init__(host_list=host_list)
Exemplo n.º 3
0
 def __init__(self, host_list=get_gearman_host(), *args, **kwargs):
   super(Client, self).__init__(host_list, *args, **kwargs)
Exemplo n.º 4
0
 def __init__(self, host_list=get_gearman_host()):
     self.continue_work = 10
     super(Worker, self).__init__(host_list=host_list)
Exemplo n.º 5
0
 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