Specify EventHandler types in builtin handlers

This commit is contained in:
Kristóf Tóth
2019-08-30 14:45:53 +02:00
parent 25cf672231
commit 9712ebf102
7 changed files with 7 additions and 0 deletions

View File

@ -10,6 +10,7 @@ LOG = logging.getLogger(__name__)
class ProcessHandler(ProcessManager):
keys = ['process']
type_id = 'ControlEventHandler'
def __init__(self, *, supervisor_uri):
ProcessManager.__init__(self, supervisor_uri)

View File

@ -7,6 +7,7 @@ LOG = logging.getLogger(__name__)
class ProcessLogHandler:
keys = ['process.log']
type_id = 'ControlEventHandler'
def __init__(self, *, process_name, supervisor_uri, log_tail=0):
self.connector, self._monitor = None, None