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