Skip to main content

Module daemon

Module daemon 

Source
Expand description

Shared local daemon for project-aware and session-aware backend state.

Structs§

CloseSessionResponse
DaemonHandle
DaemonHealth
DaemonSessionClient
DaemonState
HeartbeatResponse
OpenProjectRequest
OpenProjectResponse
ProjectHealth
ProjectSummary
SessionSummary

Enums§

GuardedStart
Outcome of guarded_daemon_start.

Constants§

DAEMON_AUTOSPAWN_ENV
Operator kill-switch for daemon auto-spawn: set SYMFORGE_DAEMON_AUTOSPAWN=off (or 0/false/no) to make ensure_daemon_running connect-only — it will attach to an already running compatible daemon but never start one.

Functions§

build_router
connect_or_spawn_session
guarded_daemon_start
Task 9: the single safe way to BIND a daemon for the current SYMFORGE_HOME. Acquires the start lock (bounded wait), re-checks for a live compatible daemon UNDER the lock, stops an incompatible recorded daemon, and only then binds in the current process — so a foreground symforge daemon racing an auto-spawn (or another foreground start) can never overwrite a live daemon’s runtime record.
run_daemon_until_shutdown
spawn_daemon

Type Aliases§

SharedDaemonState