1.7 KiB
1.7 KiB
Orch Wait
Status
completed
Owner
- codex
Started At
2026-03-19
Goal
- implement
orch waitso the leader can block on run-scoped task events instead of manual sleep loops
Scope
- add store support for waiting on run-scoped events with event-type filters and timeout behavior
- make
orch waitreconcile inbox state while polling so worker transitions can surface astask_*events - add integration tests for wake and timeout behavior
- update the implementation roadmap and archive this workstream when complete
Checklist
- inspect
orch waitdocs and current event/reconcile behavior - implement
orch waitstore and CLI layers - add integration coverage for wake and timeout paths
- run
go test ./... - update
docs/implementation-roadmap.md - archive this roadmap with a completion summary
Files
docs/roadmaps/archive/orch-wait.mddocs/implementation-roadmap.mdinternal/cli/orch/root.gointernal/cli/orch/wait.gointernal/cli/orch/integration_test.gointernal/store/orch.go
Decisions
- let
orch waitperform reconcile while polling so a leader can wait directly ontask_*events without a separate manual reconcile loop
Blockers
- none
Next Step
- implement the remaining leader-side scheduler controls:
retry,reassign,cancel, andcleanup
Completion Summary
orch waitnow blocks on run-scopedtask_*events with--for,--after-event, and timeout support- the wait loop reconciles inbox state while polling, so worker thread transitions can wake the leader without a separate manual reconcile step
- integration tests now cover both wake-on-blocked and timeout behavior