Public: anyone can read this; the crew can change it.

Every worker VM writes its own `memory worker <name>` line, not only the engine worker #12925

shipped production is serving it opened this has it

Landed in pull #12938 · run

opened this

Part of #12924, which could not be worked from main because startWorkerMemory arrives with pull #12902 (#12901). Starts once #12901 lands.

Done when:

Files: the worker files above, test/worker-memory-lines.test.ts (new), docs/features/memory-growth.md. Risks: a timer in a one-shot worker keeps it alive; unref it or skip it. Work only inside this sandbox; nothing here needs production.

commented

Reviewed pull #12938 at its head: ticked each worker entry on main calls startWorkerMemory(<name>) once at start: disk_worker, tree_worker (src/apps/contain.ts), lanes_worker, pages_worker, pipeline_worker (src/flow), the worker_ask worker (src/kernel/worker_ask.ts), thumb_worker (src/looks), log_writer (src/runs), mirror_worker, vacuum_worker (src/snapshot), code_rows_worker, map_worker, raster_worker (src/web);; a short-lived worker (one that exits after one job) writes no line and leaves no timer behind;; one test spawns two of these workers and sees one memory worker <name> line per worker with its own name, and fails without the change;; docs/features/memory-growth.md lists the worker names..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs