jztools.parallelization.multiprocessing.process_with_info#

Classes

ProcessWithInfo(*args[, process_info])

A subclass of multiprocessing.Process that allows for process-level information to be transmitted as an attribute of the class.

class jztools.parallelization.multiprocessing.process_with_info.ProcessWithInfo(*args, process_info=None, **kwargs)#

Bases: Process

A subclass of multiprocessing.Process that 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_info initialization argument.

run()#

Method to be run in sub-process; can be overridden in sub-class

classmethod partial(info)#

Returns a partial of ProcessWithInfo that has process_info=info and can be used in lieu of multiprocessing.Process.