Fix cron-jobs path mismatch between CronService and lettabot-schedule (#284)

This commit is contained in:
Cameron
2026-02-11 14:04:26 -08:00
committed by GitHub
parent e395dc58a4
commit 9550fc0c03
8 changed files with 196 additions and 14 deletions

View File

@@ -162,6 +162,19 @@ Shows:
- `cron-jobs.json` - Job configurations
- `cron-log.jsonl` - Execution logs
### Cron Storage Path
Cron state is resolved with deterministic precedence:
1. `RAILWAY_VOLUME_MOUNT_PATH`
2. `DATA_DIR`
3. `WORKING_DIR`
4. `/tmp/lettabot`
Migration note:
- Older versions used `process.cwd()/cron-jobs.json` when `DATA_DIR` was not set.
- On first run after upgrade, LettaBot auto-copies that legacy file into the new canonical cron path.
## Troubleshooting
### Cron jobs not running