jztools.parallelization.multiprocessing.process_with_info#
Classes
|
A subclass of |
- class jztools.parallelization.multiprocessing.process_with_info.ProcessWithInfo(*args, process_info=None, **kwargs)#
Bases:
ProcessA subclass of
multiprocessing.Processthat allows for process-level information to be transmitted as an attribute of the class. This information can be used to store global configurations for a process.- process_info = None#
Class attribute that will be set in the child process to the value of the
process_infoinitialization argument.
- run()#
Method to be run in sub-process; can be overridden in sub-class
- classmethod partial(info)#
Returns a partial of
ProcessWithInfothat hasprocess_info=infoand can be used in lieu ofmultiprocessing.Process.