ComfyUI/app/database
Luke Mino-Altherr 6e33c4985a Replace SQLite exclusive lock with cross-platform file lock
- Use filelock (FileLock) instead of PRAGMA locking_mode=EXCLUSIVE to
  prevent multi-process database access. The OS automatically releases
  the lock when the process exits, even on crashes or Ctrl+C.
- Add friendly error messages for database-is-locked and general
  database init failures when --enable-assets is set.
- Exit the process instead of silently disabling assets when the user
  explicitly passed --enable-assets and the database fails.
- Add filelock to requirements.txt.

Amp-Thread-ID: https://ampcode.com/threads/T-019cbab8-50d4-748c-9669-2506575dda44
Co-authored-by: Amp <amp@ampcode.com>
2026-03-04 13:48:10 -08:00
..
db.py Replace SQLite exclusive lock with cross-platform file lock 2026-03-04 13:48:10 -08:00
models.py Add most basic Asset support for models (#11315) 2026-01-08 22:21:51 -05:00