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