Wait for Users Batch Job
ethora-wait-users-batch-job-v2Block until a users batch job reaches a terminal state (completed or failed) or timeoutMs — read-only polling wrapper around ethora-users-batch-job-v2. Returns { done, state, job }, or { done: false, reason: "timeout" } on timeout.
Auth: B2B mode (ethora-auth-use-b2b + a configured b2bToken) — must match the auth used to create the job. Errors: 401/403 not in B2B mode; 404 unknown jobId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes | Job id returned by `ethora-users-batch-create-v2`. | |
| timeoutMs | No | Maximum time to wait, in milliseconds. Default 60000. Caps at 300000 (5 min). | |
| intervalMs | No | Delay between status checks, in milliseconds. Default 1000. |