MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / stop_orchestrator

Method stop_orchestrator

Ragnar.py:158–169  ·  view source on GitHub ↗

Stop the orchestrator thread.

(self)

Source from the content-addressed store, hash-verified

156
157 # Use Wi-Fi manager's connection check
158 if self.wifi_manager.check_wifi_connection():
159 self.shared_data.wifi_connected = True
160 if self.orchestrator_thread is None or not self.orchestrator_thread.is_alive():
161 logger.info("Starting Orchestrator thread...")
162 self.orchestrator = Orchestrator()
163 self.orchestrator_thread = threading.Thread(target=self.orchestrator.run)
164 self.orchestrator_thread.start()
165 logger.info("Orchestrator thread started, automatic mode activated.")
166 else:
167 logger.info("Orchestrator thread is already running.")
168 else:
169 logger.warning("Cannot start Orchestrator yet: Wi-Fi is not connected. Will auto-start when connected.")
170
171 def stop_orchestrator(self):
172 """Stop the orchestrator thread."""

Callers 3

stopMethod · 0.95
_on_single_tapMethod · 0.45

Calls 1

infoMethod · 0.80

Tested by

no test coverage detected