mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-19 14:36:22 -05:00
MultiFileConfig.initialize() imports every file while holding the shared save lock, which is not reentrant. The repair added in #901 took that lock again from inside import_all, so any WROLPi whose inventory still held epoch-second dates hung every API process at startup. The repair now only rewrites the in-memory entities during import and records which inventories changed. import_inventories_config() writes those files once it runs, outside the lock. A regression test runs initialize() against an epoch-date file with a timeout. Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| test | ||
| __init__.py | ||
| api.py | ||
| catalog.py | ||
| catalog_defaults.yaml | ||
| common.py | ||
| conftest.py | ||
| defaults.py | ||
| errors.py | ||
| migrate.py | ||
| schema.py | ||