wait_for_task
Polls a Semaphore UI task until it succeeds, errors, stops, or reaches a timeout, with optional output tail; it does not start or stop jobs.
Instructions
Poll a task until success, error, stopped, or timeout. Does not start or stop jobs. Output tail is optional; timeout leaves the job running. The initial status read and optional output read use SEMAPHORE_TIMEOUT separately from the polling budget.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ||
| timeout | No | ||
| project_id | Yes | ||
| tail_lines | No | ||
| poll_interval | No | ||
| include_output | No |