mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-23 01:31:32 +00:00
Remove unused __init__ attributes from pmgeh related classes
This commit is contained in:
parent
a6bbe6df55
commit
9eaced9f02
@ -6,8 +6,7 @@ log = logging.getLogger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
class ProcessManager(SupervisorMixin):
|
class ProcessManager(SupervisorMixin):
|
||||||
def __init__(self, supervisor_process_name):
|
def __init__(self):
|
||||||
self.process_name = supervisor_process_name
|
|
||||||
self.commands = {'start': self.start_process,
|
self.commands = {'start': self.start_process,
|
||||||
'stop': self.stop_process,
|
'stop': self.stop_process,
|
||||||
'restart': self.restart_process}
|
'restart': self.restart_process}
|
||||||
@ -17,10 +16,10 @@ class ProcessManager(SupervisorMixin):
|
|||||||
|
|
||||||
|
|
||||||
class ProcessManagingEventHandler(TriggerlessEventHandler):
|
class ProcessManagingEventHandler(TriggerlessEventHandler):
|
||||||
def __init__(self, key, supervisor_process_name):
|
def __init__(self, key):
|
||||||
super().__init__(key)
|
super().__init__(key)
|
||||||
self.key = key
|
self.key = key
|
||||||
self.processmanager = ProcessManager(supervisor_process_name)
|
self.processmanager = ProcessManager()
|
||||||
self.uplink = ServerUplinkConnector()
|
self.uplink = ServerUplinkConnector()
|
||||||
|
|
||||||
def handle_event(self, key, data_json):
|
def handle_event(self, key, data_json):
|
||||||
|
@ -9,7 +9,7 @@ from tfw.config import tfwenv
|
|||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
eventhandlers = {SourceCodeEventHandler('webide', tfwenv.WEBIDE_WD),
|
eventhandlers = {SourceCodeEventHandler('webide', tfwenv.WEBIDE_WD),
|
||||||
TerminadoEventHandler('terminado', 'terminado'),
|
TerminadoEventHandler('terminado', 'terminado'),
|
||||||
ProcessManagingEventHandler('processmanager', 'login')}
|
ProcessManagingEventHandler('processmanager')}
|
||||||
try:
|
try:
|
||||||
IOLoop.instance().start()
|
IOLoop.instance().start()
|
||||||
finally:
|
finally:
|
||||||
|
Loading…
Reference in New Issue
Block a user