Check if the daemon is running (PID file check).
()
| 77 | config.MODEL_CONFIG["n_ctx"] = args.ctx |
| 78 | |
| 79 | def _daemon_is_running() -> bool: |
| 80 | """Check if the daemon is running (PID file check).""" |
| 81 | try: |
| 82 | from core.daemon import check_pid_file |
| 83 | return check_pid_file() |
| 84 | except Exception: |
| 85 | return False |
| 86 | |
| 87 | |
| 88 | def shutdown(): |
no test coverage detected