def __init__(self, tasksQueue, cmdQueue, terminationQueue, cfg): """ @param tasksQueue: the tasks queue @param cmdQueue: the queue where wait for the abort message @param terminationQueue: the queue where send the termination message """ AbstractWorker.__init__(self, tasksQueue, cmdQueue, terminationQueue) self.cfg = cfg
def __init__(self, tasksQueue, cmdQueue, terminationQueue, warebox_path, lockfile_fd): """ @param tasksQueue: the tasks queue @param cmdQueue: the queue where wait for the abort message @param terminationQueue: the queue where send the termination message @param warebox_path: The FileRock folder pathname. @param lockfile_fd: File descriptor of the lock file which ensures there is only one instance of FileRock Client running. Child processes have to close it to avoid stale locks. """ AbstractWorker.__init__(self, tasksQueue, cmdQueue, terminationQueue) self.warebox_path = warebox_path self.lockfile_fd = lockfile_fd