data_dispatcher/api.py
def new_worker_id(self, new_id = None, worker_id_file=None):
        """Sets or generates new worker ID to be used for next file allocation.
        
        Keyword Arguments:
            new_id (str or None): New worker id to use. If None, a random worker_id will be generated.
            worker_id_file (str or None): Path to store the worker id. Default: <cwd>/.data_dispatcher_worker_id
        
        Returns:
            (str) assigned worker id
        """
        worker_id_file = worker_id_file or self.DefaultWorkerIDFile
        worker_id = new_id if new_id is not None else self.gen_worker_id()
        #print("generated worker_id:", worker_id)
        open(worker_id_file, "w").write(worker_id)
        self.WorkerID = worker_id
        return worker_id
Sets or generates new worker ID to be used for next file allocation.
        
        Keyword Arguments:
            new_id (str or None): New worker id to use. If None, a random worker_id will be generated.
            worker_id_file (str or None): Path to store the worker id. Default: <cwd>/.data_dispatcher_worker_id
        
        Returns:
            (str) assigned worker id
        
Sets or generates new worker ID to be used for next file allocation.
Keyword Arguments:
new_id (str or None): New worker id to use. If None, a random worker_id will be generated.
worker_id_file (str or None): Path to store the worker id.
Sets or generates new worker ID to be used for next file allocation . Keyword Arguments : new_id ( str or None ) : New worker id to use . If None a random worker_id will be generated . worker_id_file ( str or None ) : Path to store the worker id .
def new_worker_id(self, new_id = None, worker_id_file=None):
        worker_id_file = worker_id_file or self.DefaultWorkerIDFile
        worker_id = new_id if new_id is not None else self.gen_worker_id()
        open(worker_id_file, "w").write(worker_id)
        self.WorkerID = worker_id
        return worker_id
def new_worker_id ( self , new_id = None , worker_id_file = None ) : worker_id_file = worker_id_file or self . DefaultWorkerIDFile worker_id = new_id if new_id is not None else self . gen_worker_id ( ) open ( worker_id_file , "w" ) . write ( worker_id ) self . WorkerID = worker_id return worker_id
Sets or generates new worker ID to be used for next file allocation.
Sets or generates new worker ID to be used for next file allocation .
"""Sets or generates new worker ID to be used for next file allocation.
        
        Keyword Arguments:
            new_id (str or None): New worker id to use. If None, a random worker_id will be generated.
            worker_id_file (str or None): Path to store the worker id. Default: <cwd>/.data_dispatcher_worker_id
        
        Returns:
            (str) assigned worker id
        """ #print("generated worker_id:", worker_id)
(str) assigned worker id
( str ) assigned worker id
self
new_id
worker_id_file