Skip to main content
Version: Next

RunWaitForFinishOptions

Options for waiting for a Run to finish.

Hierarchy

Index

Properties

optionalinheritedsignal

signal?: AbortSignal

Aborts the method. Once the signal aborts, the request in flight is ended, no retry or further poll follows, and the method rejects with the signal's reason.

optionalinheritedtimeoutSecs

timeoutSecs?: Timeout

Timeout for the API request: a tier name ('short', 'medium', 'long'), a number of seconds, or 'noTimeout'. Defaults to the tier the method is assigned, which its documentation names.

optionalwaitSecs

waitSecs?: number

Maximum time to wait for the run to finish, in seconds. If the limit is reached, the returned promise is resolved to a run object that will have status READY or RUNNING. If waitSecs omitted, the function waits indefinitely.

Page Options