Durable ops assistant
This example shows how OpenClaw can keep operational work moving across time with scheduled tasks, retries, and resume-after-interruption behavior. The sample files in this folder provide the starter state, and OpenClaw appends runtime state to the seeded status.md log plus the local workspace.
Prerequisites
- OpenClaw installed and able to load a local example folder
OPENAI_API_KEYset in the environment- OpenClaw configured to run scheduled work for a local workspace
Files to inspect first
openclaw.json5: minimal runtime defaults for scheduling and durabilityschedule.md: the recurring assistant tasks in this examplestatus.md: the checkpoint log used to verify retries and resumes
State model
status.mdis the visible log you can inspect after each run../.openclaw/durable-opsis the checkpointed workspace that survives restarts.- Completed items stay in place when OpenClaw restarts.
Configure OpenClaw
- Open this folder in OpenClaw as a workspace.
- In OpenClaw, open the Scheduler panel and click
Startfor this workspace. - Load
openclaw.json5from the folder root. - Confirm the workspace path is created under the example folder's local
.openclaw/durable-opsdirectory. - Open
schedule.mdand confirm it is the schedule source for the example. - Open
status.mdso you can watch the checkpoint log change during the run.
Run the example
- Start the example and let the 08:00 task run, or click
Runon the 08:00 schedule item if your setup does not wait on the clock. - Open the 12:00 schedule item and click
Runif it is not already active. - Confirm
status.mdalready contains the seeded failed item08:05 - incident sync failed once. - Wait until the 12:00 item writes
12:00 - incident sync checkpoint saved, then stop OpenClaw and restart it with the same workspace. That checkpoint is the interruption point. - Reopen the same 12:00 item and choose
Resume. - After the resumed 12:00 run completes, verify
status.mdadds12:05 - retried incident syncand leaves the seeded failure line in place. - Open the 18:00 item, click
Run, and confirmstatus.mdends with18:00 - end-of-day summary sent.
Expected result
Before the resumed run:
text
- 08:00 - reviewed alerts
- 08:05 - incident sync failed once
- 12:00 - incident sync checkpoint savedAfter the resumed run:
text
- 08:00 - reviewed alerts
- 08:05 - incident sync failed once
- 12:00 - incident sync checkpoint saved
- 12:05 - retried incident sync
- 18:00 - end-of-day summary sentSuccess criteria
- Scheduled work is visible in
schedule.md. - Retries do not lose prior progress.
- The README explains how to observe a full schedule, retry, and resume cycle in OpenClaw.
Cleanup or reset
- Delete
./.openclaw/durable-opsif you want to reset the OpenClaw workspace state. - Restore
status.mdfrom git if you want the checkpoint log back in its starter state.