Update ProcessManagingEventHandler to support new architecture

This commit is contained in:
Kristóf Tóth 2018-02-27 14:39:54 +01:00
parent 3341e97ef6
commit b50a2e401f

View File

@ -1,4 +1,4 @@
from tfw.event_handler_base import EventHandlerBase
from tfw.event_handler_base import TriggerlessEventHandler
from tfw.components.mixins import SupervisorMixin
from tfw.config.logs import logging
log = logging.getLogger(__name__)
@ -15,7 +15,7 @@ class ProcessManager(SupervisorMixin):
self.commands[command]()
class ProcessManagingEventHandler(EventHandlerBase):
class ProcessManagingEventHandler(TriggerlessEventHandler):
def __init__(self, key, supervisor_process_name):
super().__init__(key)
self.processmanager = ProcessManager(supervisor_process_name)