`CODEGRAPH_DAEMON_ROOT_CHECK_MS`: how often the project's presence is checked (#3245); 0 disables it.
()
| 1061 | |
| 1062 | /** `CODEGRAPH_DAEMON_ROOT_CHECK_MS`: how often the project's presence is checked (#3245); 0 disables it. */ |
| 1063 | function resolveRootCheckMs(): number { |
| 1064 | const raw = process.env.CODEGRAPH_DAEMON_ROOT_CHECK_MS; |
| 1065 | if (raw === undefined || raw === '') return DEFAULT_ROOT_CHECK_MS; |
| 1066 | const parsed = Number(raw); |
| 1067 | if (!Number.isFinite(parsed) || parsed < 0) return DEFAULT_ROOT_CHECK_MS; |
| 1068 | return Math.floor(parsed); |
| 1069 | } |
| 1070 | |
| 1071 | /** `CODEGRAPH_DAEMON_ROOT_GRACE_MS`: how long the project must stay gone before the daemon exits (#3245). */ |
| 1072 | function resolveRootGoneGraceMs(): number { |
no test coverage detected