mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 19:00:45 +00:00
cron: clarify split store docs
This commit is contained in:
@@ -369,6 +369,10 @@ Model override note:
|
||||
}
|
||||
```
|
||||
|
||||
The runtime state sidecar is derived from `cron.store`: a `.json` store such as
|
||||
`~/clawd/cron/jobs.json` uses `~/clawd/cron/jobs-state.json`, while a store path
|
||||
without a `.json` suffix appends `-state.json`.
|
||||
|
||||
Disable cron: `cron.enabled: false` or `OPENCLAW_SKIP_CRON=1`.
|
||||
|
||||
**One-shot retry**: transient errors (rate limit, overload, network, server error) retry up to 3 times with exponential backoff. Permanent errors disable immediately.
|
||||
|
||||
@@ -226,7 +226,7 @@ export async function saveCronStore(
|
||||
}
|
||||
}
|
||||
|
||||
// Write state file first (safer ordering for migration — see PR_DRAFT.md Atomicity).
|
||||
// Write state first so migration never leaves stripped config without runtime state.
|
||||
if (stateChanged || migrating) {
|
||||
await atomicWrite(statePath, stateJson);
|
||||
serializedStoreCache.set(stateCacheKey, stateJson);
|
||||
|
||||
Reference in New Issue
Block a user