worker_heartbeat
Report that a worker is alive and extend its lease to keep claims from expiring. Call periodically while working so unfinished tasks are not reassigned.
Instructions
Report that a worker is alive and extend its leases. Silence is what 'stale' means, so a worker that stops heartbeating has its claims expire and its work picked up by someone else. Call this every few minutes while working.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Directory identifying the project and the tree. Defaults to this session's working directory, which in a git worktree is that worktree. | |
| goal | No | ||
| worker | Yes | ||
| worktree | No | ||
| session_id | No |