Files
lancedb/docs/src/js/classes/Job.md
T
Wyatt Alt e3b472c212 feat: connection-level job operations (#3755)
Adds job operations to the connection surface, building on the Job
handle from #3742: job(id), list_jobs, get_job, cancel_job, and
job_history, plus a non-blocking Job.status(). Implemented on the
Database trait (defaulting to NotSupported), the remote backend
(/v1/jobs), and the Python and Node bindings; job_history returns Arrow
batches.

errors() and progress() are not included.

Tested with mocked endpoints in all three languages.

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-31 12:51:43 -07:00

1.1 KiB

@lancedb/lancedbDocs


@lancedb/lancedb / Job

Class: Job

A handle to an operation that may still be running.

Constructors

new Job()

new Job(): Job

Returns

Job

Accessors

id

get id(): null | string

Identifies the operation on the server that is running it. Operations that run in this process have no server id. The value is opaque.

Returns

null | string

Methods

cancel()

cancel(): Promise<void>

Request cancellation. Cancelling a finished operation is a no-op.

Returns

Promise<void>


status()

status(): Promise<string>

The operation's current lifecycle state: "running", "finished", "failed", or "cancelled".

A point snapshot; unlike Job.wait it does not block or reject on a terminal failure state. States a newer server reports that this client version does not know pass through as-is.

Returns

Promise<string>


wait()

wait(): Promise<void>

Wait until the operation reaches a terminal state.

Returns

Promise<void>