15 lines
434 B
Python
Executable File
15 lines
434 B
Python
Executable File
import multiprocessing
|
|
|
|
class Process(multiprocessing.Process) :
|
|
def __init__(self, alert_config, config, logger, production_mode) :
|
|
multiprocessing.Process.__init__(
|
|
self,
|
|
target=self.get_target(),
|
|
args=(alert_config, config, logger, production_mode),
|
|
name=alert_config.id,
|
|
daemon=True,
|
|
)
|
|
|
|
def get_target(self) :
|
|
raise Exception("abstract method not implemented")
|