mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-26 12:33:59 +00:00
TypeScript job handles now expose structured progress through `progress()` and an optional synchronous callback to `wait()`. Snapshots preserve unknown fields and missing counters, and job listings include progress and pause state. Existing `status()` strings and no-argument `wait()` behavior remain compatible. Wait callbacks observe the existing backend poller. Observer exceptions are logged without changing the job outcome. A best-effort ETA is available only from compatible samples with positive progress, and is omitted during initialization, queueing, or pause. Part of ENT-3500. --------- Co-authored-by: EC2 Default User <ec2-user@ip-172-31-12-104.us-east-2.compute.internal>
1.6 KiB
1.6 KiB
@lancedb/lancedb • Docs
@lancedb/lancedb / JobProgress
Interface: JobProgress
A forward-compatible structured progress snapshot for a server-side job.
Fields are optional because older servers and different job types report different counters. A missing counter is unknown; it is not zero.
Indexable
[field: string]: unknown
Properties
estimated_remaining_time_millis?
optional estimated_remaining_time_millis: number;
Best-effort remaining milliseconds, present only for a reliable sample.
execution_epoch?
optional execution_epoch: null | number;
Execution identity and sample time used for client-side ETA derivation.
paused?
optional paused: boolean;
Whether an operator has parked the job.
phase?
optional phase: null | string;
Coarse server-derived phase, including phases from newer servers.
rows_computed?
optional rows_computed: null | number;
rows_failed?
optional rows_failed: null | number;
rows_planned?
optional rows_planned: null | number;
Planned, computed, skipped, remaining, and failed row counters, when the server reports them.
rows_remaining?
optional rows_remaining: null | number;
rows_skipped?
optional rows_skipped: null | number;
sample_at_millis?
optional sample_at_millis: null | number;
state?
optional state: string;
Lifecycle state, including states from newer servers.