def __init__(self, worker_handler, stopper): WorkerThread.__init__(self, worker_handler, stopper) #Intervals self.init_interval = get_cluster_items_worker_intervals()['sync_files'] self.interval = self.init_interval self.interval_ask_for_permission = get_cluster_items_worker_intervals()['ask_for_permission']
def __init__(self, worker_handler, stopper): WorkerThread.__init__(self, worker_handler, stopper) self.thread_tag = "[Worker ] [KeepAlive-S ]" # Intervals self.init_interval = get_cluster_items_worker_intervals()['keep_alive'] self.interval = self.init_interval self.failed_attempts = 0 self.max_failed_attempts = get_cluster_items_worker_intervals()['max_failed_keepalive_attempts']
def __init__(self, worker_handler, stopper): SyncWorkerThread.__init__(self, worker_handler, stopper) self.init_interval = get_cluster_items_worker_intervals()['sync_integrity'] self.interval = self.init_interval self.request_type = "sync_i_c_m_p" self.reason = "sync_i_c_m" self.function = self.worker_handler.send_integrity_to_master self.thread_tag = "[Worker] [Integrity-S ]"
def __init__(self, worker_handler, stopper): WorkerThread.__init__(self, worker_handler, stopper) self.thread_tag = "[Worker] [KeepAlive-S ]" # Intervals self.init_interval = get_cluster_items_worker_intervals()['keep_alive'] self.interval = self.init_interval