packs restore declares offline mode when the app is not running. Release 0.10.1. #4

Closed
oliver.maklott wants to merge 0 commits from oliver.maklott/packs-restore-offline into main AGit

From app 0.82 on, the pack scripts (packs:restore and the others) refuse to run when Redis is unreachable, as the app does, unless they are told with --offline that no other instance shares the pack volumes; a lock file in data/config then is the whole lock.

ldcmd packs restore (and the restore during up) runs packs:restore in a one-off container with --no-deps, where Redis may not be up at all. It now passes --offline exactly when this deploy dir's app service is not running. With the app running, nothing changes: the script reaches Redis and takes the lock.

Older app versions ignore the flag.

Tests: tests/run_all.sh (33 passed).

🤖 Generated with Claude Code

https://claude.ai/code/session_01PVUe4ghusFjH71tHhZetH2

From app 0.82 on, the pack scripts (`packs:restore` and the others) refuse to run when Redis is unreachable, as the app does, unless they are told with `--offline` that no other instance shares the pack volumes; a lock file in `data/config` then is the whole lock. `ldcmd packs restore` (and the restore during `up`) runs `packs:restore` in a one-off container with `--no-deps`, where Redis may not be up at all. It now passes `--offline` exactly when this deploy dir's app service is not running. With the app running, nothing changes: the script reaches Redis and takes the lock. Older app versions ignore the flag. Tests: `tests/run_all.sh` (33 passed). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PVUe4ghusFjH71tHhZetH2
oliver.maklott closed this pull request 2026-11-15 21:20:31 +01:00
All checks were successful
Test / test (pull_request) Successful in 48s

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
limedoc/ldcmd!4
No description provided.