> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spaceport.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Module: jobStatus

## Table of contents

### Job Status Functions

* [pollJobStatus](utils_jobStatus.md#polljobstatus)

## Job Status Functions

### pollJobStatus

▸ **pollJobStatus**(`apiBaseUrl`, `jobId`, `options?`, `headers?`): `Promise`\<[`JobStatusResponse`](../types/job-status-response)>

Polls job status until completion or timeout.
This function continuously checks the status of a job until it completes, fails, or times out.

#### Parameters

| Name         | Type                                              | Description                                         |
| :----------- | :------------------------------------------------ | :-------------------------------------------------- |
| `apiBaseUrl` | `string`                                          | The API base URL                                    |
| `jobId`      | `string`                                          | The ID of the job to poll                           |
| `options`    | [`JobStatusOptions`](../types/job-status-options) | Polling options                                     |
| `headers`    | `Record`\<`string`, `string`>                     | Optional headers for authentication (e.g., API key) |

#### Returns

`Promise`\<[`JobStatusResponse`](../types/job-status-response)>

Promise that resolves with the final job status
