Skip to main content

UseJobStatusOptions

@fovea/annotation-tool


@fovea/annotation-tool / hooks/useJobStatus / UseJobStatusOptions

Interface: UseJobStatusOptions

Defined in: src/hooks/useJobStatus.ts:21

Hook options for job status polling.

Extends

Properties

onComplete()?

optional onComplete: (result) => void

Defined in: src/hooks/useJobStatus.ts:31

Callback when job completes successfully.

Parameters

result

JobStatus

Returns

void


onFail()?

optional onFail: (error) => void

Defined in: src/hooks/useJobStatus.ts:35

Callback when job fails.

Parameters

error

string

Returns

void


pollingInterval?

optional pollingInterval: number

Defined in: src/hooks/useJobStatus.ts:27

Polling interval in milliseconds when job is active.

Default

2000