fix: make input-folder watching opt-in (default off) to keep restarts fast

Folding the input-dir mtime into the cache fingerprint backfired on busy input
folders (e.g. a video workflow constantly adding clips): the input dir changed
on nearly every restart, invalidating the cache and forcing a ~5-min rebuild of
the (now 74 MB) object_info over the CIFS model mount on each load -- the exact
slowness the pack exists to avoid.

Input watching is now opt-in via TENACIOUSLOAD_WATCH_INPUT=1. By default new
input files are picked up via a refresh button, same as new models. Node code
changes are still auto-detected. Unit-tested.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-21 08:50:57 +02:00
parent 0d2b5e0819
commit ddbaa21b10
2 changed files with 20 additions and 9 deletions
+7
View File
@@ -107,6 +107,13 @@ python main.py --listen --port 8188 --enable-compress-response-body
button, to force a rebuild.
- An nginx reverse proxy can cache `object_info` at the HTTP layer too, but this
pack does it in-process so no extra service, container, or port is needed.
- **New files in the `input` folder** are picked up by a **refresh button** by
default (same as new models) — they do *not* trigger an automatic rebuild on
restart. To auto-detect them on restart instead, set
`TENACIOUSLOAD_WATCH_INPUT=1`. Only do this if your input folder is fairly
static: on a busy input folder (e.g. a video workflow that adds clips
constantly) the input dir changes on nearly every restart, which would
invalidate the cache and force a slow rebuild each time — defeating the point.
## Installing / updating other custom nodes
This pack is a quiet neighbour: