github new-usemame/Calibre-Web-NextGen v4.0.75
v4.0.75 — Ingest fast-exit polish (preserves @navels' CWA #1349 design intent)

latest release: v4.0.76
14 hours ago

What's new

docker pull ghcr.io/new-usemame/calibre-web-nextgen:v4.0.75

(or :latest)

Ingest fast-exit polish — defer fork-original cps imports

A small follow-up to v4.0.74 (backport of @navels' CWA #1349). The original backport left two fork-PR-introduced imports (calibre_user_plugins from PR #122, metadata_db_write_lock from PR #199) at the top of scripts/ingest_processor.py. Both touch cps.services.* which triggers the Flask app's initial setup on import — defeating @navels' "fast-exit before initializing the full application stack" design intent on the stale-event path.

The fix moves both imports inside initialize_runtime() so they only fire on the real-ingest path. Missing-target invocations stay genuinely fast; PR #199's metadata.db flock still works correctly on real ingests because the lazy load happens before any calibredb call.

No user-visible behavior change beyond marginally faster handling of stale watcher events on slow filesystems.

Don't miss a new Calibre-Web-NextGen release

NewReleases is sending notifications on new releases.