/usr/lib/imh-ultrastack-common/venv/lib/python3.13/site-packages/supervisor
NameSizeModeActions
medusa/-0755rm
scripts/-0755rm
skel/-0755rm
tests/-0755rm
ui/-0755rm
__pycache__/-0755rm
childutils.py25610644editdlrm
compat.py56920644editdlrm
confecho.py2430644editdlrm
datatypes.py132670644editdlrm
dispatchers.py192930644editdlrm
events.py72350644editdlrm
http.py318820644editdlrm
http_client.py70300644editdlrm
loggers.py133110644editdlrm
options.py882910644editdlrm
pidproxy.py20060644editdlrm
poller.py67030644editdlrm
process.py394440644editdlrm
rpcinterface.py378230644editdlrm
socket_manager.py30950644editdlrm
states.py17910644editdlrm
supervisorctl.py548850644editdlrm
supervisord.py152080644editdlrm
templating.py470810644editdlrm
version.txt60644editdlrm
web.py243180644editdlrm
xmlrpc.py214380644editdlrm
__init__.py200644editdlrm
Edit: /usr/lib/imh-ultrastack-common/venv/lib/python3.13/site-packages/supervisor/states.py (1791B)
# This module must not depend on any other non-stdlib module to prevent # circular import problems. class ProcessStates: STOPPED = 0 STARTING = 10 RUNNING = 20 BACKOFF = 30 STOPPING = 40 EXITED = 100 FATAL = 200 UNKNOWN = 1000 STOPPED_STATES = (ProcessStates.STOPPED, ProcessStates.EXITED, ProcessStates.FATAL, ProcessStates.UNKNOWN) RUNNING_STATES = (ProcessStates.RUNNING, ProcessStates.BACKOFF, ProcessStates.STARTING) SIGNALLABLE_STATES = (ProcessStates.RUNNING, ProcessStates.STARTING, ProcessStates.STOPPING) def getProcessStateDescription(code): return _process_states_by_code.get(code) class SupervisorStates: FATAL = 2 RUNNING = 1 RESTARTING = 0 SHUTDOWN = -1 def getSupervisorStateDescription(code): return _supervisor_states_by_code.get(code) class EventListenerStates: READY = 10 # the process ready to be sent an event from supervisor BUSY = 20 # event listener is processing an event sent to it by supervisor ACKNOWLEDGED = 30 # the event listener processed an event UNKNOWN = 40 # the event listener is in an unknown state def getEventListenerStateDescription(code): return _eventlistener_states_by_code.get(code) # below is an optimization for internal use in this module only def _names_by_code(states): d = {} for name in states.__dict__: if not name.startswith('__'): code = getattr(states, name) d[code] = name return d _process_states_by_code = _names_by_code(ProcessStates) _supervisor_states_by_code = _names_by_code(SupervisorStates) _eventlistener_states_by_code = _names_by_code(EventListenerStates)