apiBaseUrl
, jobId
, options?
, headers?
): Promise
<JobStatusResponse
>
Polls job status until completion or timeout.
This function continuously checks the status of a job until it completes, fails, or times out.
Name | Type | Description |
---|---|---|
apiBaseUrl | string | The API base URL |
jobId | string | The ID of the job to poll |
options | JobStatusOptions | Polling options |
headers | Record <string , string > | Optional headers for authentication (e.g., API key) |
Promise
<JobStatusResponse
>
Promise that resolves with the final job status