mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 21:01:31 +00:00
Update ProcessManagingEventHandler to support new architecture
This commit is contained in:
parent
3341e97ef6
commit
b50a2e401f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user