You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3229298
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -381,7 +381,15 @@ The migration creates a `.v1-backup` copy and writes the v2 database under `~/.k
381
381
382
382
### v2 durable tasks and learning
383
383
384
-
Tasks persist across process restarts and use `pending`, `running`, `succeeded`, `failed`, `blocked`, and `cancelled` states. `TaskDone` is only a completion request; a successful tool result, test, file check, or explicit confirmation must provide evidence before a task can succeed.
384
+
Tasks persist across process restarts and use `pending`, `running`, `succeeded`, `failed`, `blocked`, and `cancelled` states. `TaskDone` is only a completion request; a successful tool result, test, file check, or explicit confirmation must provide evidence before a task can succeed. API-created tasks with an explicit safe `action` and string `args` are picked up by the durable worker after server restart; failed or blocked tasks require an explicit resume request.
385
+
386
+
```bash
387
+
curl -X POST http://127.0.0.1:8000/api/v2/tasks \
388
+
-H 'Content-Type: application/json' \
389
+
-d '{"description":"write a marker","action":"write_file","args":"task-marker.txt|completed","acceptance":["marker written"]}'
390
+
# Resume a failed/blocked task:
391
+
curl -X POST http://127.0.0.1:8000/api/v2/tasks/<task-id>/resume
392
+
```
385
393
386
394
Run a frozen clean-versus-evolved benchmark with identical case order and runner settings:
0 commit comments