mirror of
https://github.com/lancedb/lancedb.git
synced 2026-09-04 12:38:38 +00:00
e3b472c212
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>
67 lines
766 B
Markdown
67 lines
766 B
Markdown
[**@lancedb/lancedb**](../README.md) • **Docs**
|
|
|
|
***
|
|
|
|
[@lancedb/lancedb](../globals.md) / JobDescription
|
|
|
|
# Interface: JobDescription
|
|
|
|
A described job from `Connection.getJob`.
|
|
|
|
## Properties
|
|
|
|
### creationMs
|
|
|
|
```ts
|
|
creationMs: number;
|
|
```
|
|
|
|
When the job was created, in milliseconds since the epoch.
|
|
|
|
***
|
|
|
|
### failure?
|
|
|
|
```ts
|
|
optional failure: JobFailureInfo;
|
|
```
|
|
|
|
Why the job failed, when the job is failed and the server reports a
|
|
reason.
|
|
|
|
***
|
|
|
|
### jobId
|
|
|
|
```ts
|
|
jobId: string;
|
|
```
|
|
|
|
***
|
|
|
|
### jobType
|
|
|
|
```ts
|
|
jobType: string;
|
|
```
|
|
|
|
***
|
|
|
|
### specJson?
|
|
|
|
```ts
|
|
optional specJson: string;
|
|
```
|
|
|
|
The job-type-specific specification as a JSON string, when present.
|
|
|
|
***
|
|
|
|
### state
|
|
|
|
```ts
|
|
state: string;
|
|
```
|
|
|
|
Lifecycle state: "running", "finished", "failed", or "cancelled".
|