Repository navigation
0.1.7
What's Changed since v0.1.6
Features
- Drained engine apply:
district apply --drainwrites an atomic, expiring host flag so compatible timer-started Factory passes skip before starting work, waits up to 6 hours (--drain-timeout, at most 7h45m) for running and hand-run work to finish, then installs and post-checks the CI-green engine. A drain never stops, disables, masks, delays, or re-enables a timer and never kills a running pass; while drained, District does not callfactory installor apply the failure cap. Only hosts with pending engine work are drained.district drain --clear [--host NAME]removes a flag, doctor warns about stale or malformed flags, and the hourly apply drains after 3 deferrals or 24 hours. Drain admission needs Factory'sdrain-check(mikeroySoft/factory#563); older pass units ignore the flag, so District keeps checking busy work and times out safely. (#149, #150) - Post-apply checks: before clearing a drain, District checks Factory help, version, tool-Python import, receipt and target ancestry, dashboard HTTP 200, restarts the installed District dashboard, validates the previous engine in isolated uv directories, and runs
factory watch --dry-runfrom a registered repository checkout. (#149, #150)
Fixes
- Busy means Factory services: engine busy checks read the owning host's service manager (
factory-*.serviceon Linux, Factory launchd jobs on macOS) instead of every process's cwd and argv, sosshdand long-running dashboards no longer block an upgrade forever. Service probes share one idle deadline. (#151, #152)
Internal
- Install-state schema 3 records local
last_apply.drainand per-hostlast_apply.drains. (#150) - Project page updated for 0.1.7; the v0.1.6 and v0.1.4 changelog entries are restored to their shipped text. (#155)
Install / update
district update --to v0.1.7 --yes
district applyFresh install:
uv tool install git+https://github.com/mikeroySoft/district@v0.1.7Full Changelog: v0.1.6...v0.1.7