MCPcopy
hub / github.com/tirth8205/code-review-graph / _handle_start

Function _handle_start

code_review_graph/daemon_cli.py:31–46  ·  view source on GitHub ↗

Start the daemon process.

(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

29
30
31def _handle_start(args: argparse.Namespace) -> None:
32 """Start the daemon process."""
33 from .daemon import WatchDaemon, is_daemon_running, load_config
34
35 if is_daemon_running():
36 print("Error: Daemon is already running.")
37 sys.exit(1)
38
39 config = load_config()
40 daemon = WatchDaemon(config=config)
41 daemon.start()
42
43 if not args.foreground:
44 daemon.daemonize()
45
46 daemon.run_forever()
47
48
49def _handle_stop(_args: argparse.Namespace) -> None:

Callers 2

_handle_restartFunction · 0.85

Calls 6

startMethod · 0.95
daemonizeMethod · 0.95
run_foreverMethod · 0.95
is_daemon_runningFunction · 0.85
WatchDaemonClass · 0.85
load_configFunction · 0.70

Tested by 1