Repository navigation
Commit e29269f
authored
fix(schedule): pin the job's state and log, and report failed runs (#81)
The launchd plist took its log path from the creating shell's VANA_HOME but
started the job without it, so a schedule made from a test state collected
into ~/.vana while logging into a /tmp home the OS wiped. With --quiet the
run printed nothing and exited 0 even when every sync failed.
- schedule add writes EnvironmentVariables (VANA_HOME always, plus network,
account and server selection when set; never tokens) and puts the log in
that home's logs dir; the cron line carries the same env. Re-running add
repairs an outdated job, keeps its interval and says what was wrong.
- schedule list shows the state and log the job uses and warns when the job
is outdated or serves a different state than the current shell.
- collect --all exits 1 when any source failed to collect or sync (5 when
the only problem is that no Personal Server answered) and names each
failed source on stderr, even under --quiet.
- A scheduled run records its outcome in state and vana status shows the
last one, with the failure count and log path when it failed.
Claude-Session: https://claude.ai/code/session_01Fcv6uEy4zcXaigzDNxeW3j1 parent 887e98d commit e29269f
7 files changed
Lines changed: 1497 additions & 422 deletions
File tree
- docs
- src
- cli
- core
- test/cli
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
| |||
0 commit comments