Watch Job
watch_jobMonitor a Beaker job to completion, analyze failures, and auto-retry with corrected job XML.
Instructions
Watch a Beaker job until completion, with failure analysis and auto-retry.
Polls the job continuously. On success, returns a report. On failure, performs deep analysis (failure reasons, constraints, suggestions) and can auto-generate a corrected XML and resubmit up to max_retries times. Also works on already-finished jobs for post-mortem analysis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Beaker job ID (e.g. 'J:12345' or '12345'). | |
| max_retries | No | Max auto-correct-and-resubmit cycles. Default: 2. | |
| poll_interval | No | Seconds between status polls. Default: 30. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |