mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-11-04 10:12:54 +00:00 
			
		
		
		
	Specify EventHandler types in builtin handlers
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user