diff --git a/mnemosyne/library/apps.py b/mnemosyne/library/apps.py index 162d10f..3995e95 100644 --- a/mnemosyne/library/apps.py +++ b/mnemosyne/library/apps.py @@ -201,6 +201,13 @@ class LibraryConfig(AppConfig): def ready(self): if _should_skip_probe(): return + import threading + + t = threading.Thread(target=self._probe_thread, daemon=True) + t.start() + t.join(timeout=10) + + def _probe_thread(self): try: _run_startup_probe() except Exception as exc: