Skip to content

@edgehero/pi-dispatch v1.10.3

Choose a tag to compare

@github-actions github-actions released this 07 Sep 13:19
· 47 commits to main since this release

The three live edit directory watches now return a stop handle that the worker's shutdown closes.

Before this version, startWorker created each watch and discarded it. unref keeps a handle from
holding the event loop open, but it does not disarm it, so a worker that shut down inside a process that
kept running left three armed watches behind, each still holding that worker's log closure. A reload
fired afterwards wrote a line stamped with the host of a worker that had stopped.

The handle closes the watcher, cancels the debounce the callback armed, and silences a reload that had
already started, which an async reconcile makes possible. It never throws and it is idempotent.

Also in this version: the shutdown's closer loop no longer lets one bad closer strand the ones after it,
which had been costing the host registry its row deletion on that path.

Upgrade with npm install. No operator action beyond that.