diff options
| author | soryu <soryu@soryu.co> | 2026-01-23 03:42:18 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-01-23 03:42:18 +0000 |
| commit | ad55b3b00ebbfd8023897d0f4bfffa9be438b9f2 (patch) | |
| tree | 8dbefc358bdeab6fd0c4a746c802314b7dfca332 /makima/src/db | |
| parent | 3230c8b729101ce227e10efcb181fafe83fc8d0a (diff) | |
| download | soryu-makima/task-task-5c27b152-5c27b152.tar.gz soryu-makima/task-task-5c27b152-5c27b152.zip | |
feat: Add client-side polling for CLI wait commandmakima/task-task-5c27b152-5c27b152
When contracts wait for tasks in makima, the CLI now polls and returns
once the task has changed state. This provides resilient task status
detection even if:
- Server's broadcast channels miss a notification
- Network connections are intermittent
- Long-polling HTTP requests timeout at load balancers
The implementation uses a hybrid approach:
1. First tries server-side wait with short timeout (30s)
2. Falls back to polling via supervisor_get_task endpoint
3. Configurable poll_interval (default 5s) via --poll-interval flag
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'makima/src/db')
0 files changed, 0 insertions, 0 deletions
