mirror of
https://github.com/stablyai/orca.git
synced 2026-11-04 02:57:36 +00:00
Daemon log lines used appendFileSync per event and the trace sink used writeSync, so a disk or writeback stall froze the daemon and orcad together. Both now go through one bounded writer: lines queue in memory, one async drain writes a batch at a time and is the only code that rotates, a full queue drops its oldest lines behind a count marker, and flush() waits only for its own lines. Crash breadcrumbs and exits append the remaining queue synchronously. Orderly quit waits up to 500 ms for the async flush. Refs #34410 Refs #33870
13 lines
654 B
Plaintext
13 lines
654 B
Plaintext
# Event-loop-blocking calls in the terminal daemon, PTY and orcad runtime code, per file:
|
|
# execFileSync/spawnSync/execSync, runProcessSync, appendFileSync and writeSync.
|
|
# This is a RATCHET: counts may only go DOWN.
|
|
# Prune after removing calls: pnpm check:daemon-blocking-call-ratchet --prune
|
|
2 src/main/daemon/daemon-cgroup-scope.ts
|
|
1 src/main/daemon/daemon-process-identity-query.ts
|
|
1 src/main/daemon/daemon-process-start-time.ts
|
|
2 src/main/daemon/daemon-stream-backlog-probe.ts
|
|
1 src/main/daemon/daemon-user-manager-lifetime.ts
|
|
1 src/main/daemon/terminal-scopes.ts
|
|
2 src/main/orcad/node-pty-precondition.ts
|
|
1 src/main/pty/posix-pty-process-table.ts
|