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

Method run

pager/PagerRagnar.py:157–166  ·  view source on GitHub ↗

Main loop - waits for Wi-Fi connection and starts Orchestrator.

(self)

Source from the content-addressed store, hash-verified

155 self.shared_data.headless_mode = False
156
157 def run(self):
158 """Main loop - waits for Wi-Fi connection and starts Orchestrator."""
159 if hasattr(self.shared_data, 'startup_delay') and self.shared_data.startup_delay > 0:
160 logger.info(f"Waiting for startup delay: {self.shared_data.startup_delay} seconds")
161 time.sleep(self.shared_data.startup_delay)
162
163 while not self.shared_data.should_exit:
164 if not self.shared_data.manual_mode:
165 self.check_and_start_orchestrator()
166 time.sleep(10)
167
168 def check_and_start_orchestrator(self):
169 if self.is_wifi_connected():

Callers 6

is_wifi_connectedMethod · 0.45
detect_interfacesFunction · 0.45
_clear_logsMethod · 0.45
_clear_stolenMethod · 0.45
_clear_allMethod · 0.45
mainFunction · 0.45

Calls 3

infoMethod · 0.80
sleepMethod · 0.45

Tested by

no test coverage detected