Submit a job
submit_jobEnqueue a job for asynchronous execution in an isolated process, with configurable timeout and automatic retries. Returns the job with status 'queued'.
Instructions
Enqueue a job for asynchronous execution by the worker. Returns the created job (status 'queued'). Valid type values are the registered handlers: echo, wait, hash, fibonacci, fail. The job runs in an isolated process under a timeout, with automatic retries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Job type; must be a registered handler name. | |
| payload | No | Arbitrary JSON object passed to the handler. | |
| priority | No | Higher runs first (default 0). | |
| maxAttempts | No | Total attempts incl. the first (default 3). | |
| timeoutMs | No | Per-job wall-clock timeout in ms (default 30000). |