MCPcopy Create free account
hub / github.com/OpenDriveLab/TCP / _signal_handler

Method _signal_handler

scenario_runner/scenario_runner.py:127–136  ·  view source on GitHub ↗

Terminate scenario ticking when receiving a signal interrupt

(self, signum, frame)

Source from the content-addressed store, hash-verified

125 del self.client
126
127 def _signal_handler(self, signum, frame):
128 """
129 Terminate scenario ticking when receiving a signal interrupt
130 """
131 self._shutdown_requested = True
132 if self.manager:
133 self.manager.stop_scenario()
134 self._cleanup()
135 if not self.manager.get_running_status():
136 raise RuntimeError("Timeout occured during scenario execution")
137
138 def _get_scenario_class_or_fail(self, scenario):
139 """

Callers

nothing calls this directly

Calls 3

_cleanupMethod · 0.95
stop_scenarioMethod · 0.45
get_running_statusMethod · 0.45

Tested by

no test coverage detected