mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-26 20:44:00 +00:00
feat: report capacity waits in function refresh job status (#5154)
An Enterprise Function refresh can spend time waiting for execution workers. Applications polling `job.status()` currently see `running` during that wait. Return `waiting_for_capacity` when the server reports that phase for an active Function refresh. The next status request reports `running` when execution resumes. Applications can use `job.wait()` to wait through both states until completion. Rust, Python and Node read the phase from the existing job description response. ## Validation Two HTTP regression tests exercise the public job handle. They cover the wait, work resuming, completion after another wait, a stale phase at completion, queued and paused refreshes, other job types, and servers that omit the phase. The Rust CI remote job runs these tests.
This commit is contained in:
@@ -251,8 +251,8 @@ export class Job<T = void> {
|
||||
}
|
||||
|
||||
/**
|
||||
* The operation's current lifecycle state: "running", "finished", "failed",
|
||||
* or "cancelled".
|
||||
* The current status, usually "running", "finished", "failed", or "cancelled".
|
||||
* A Function refresh waiting for execution workers reports "waiting_for_capacity".
|
||||
*
|
||||
* A point snapshot; unlike {@link Job.wait} it does not block or reject on a
|
||||
* terminal failure state. Also refreshes the getters above.
|
||||
|
||||
+2
-2
@@ -106,8 +106,8 @@ impl Job {
|
||||
self.inner.execution_epoch()
|
||||
}
|
||||
|
||||
/// The operation's current lifecycle state: "running", "finished",
|
||||
/// "failed", or "cancelled".
|
||||
/// The current status, usually "running", "finished", "failed", or "cancelled".
|
||||
/// A Function refresh waiting for execution workers reports "waiting_for_capacity".
|
||||
///
|
||||
/// A point snapshot; unlike {@link Job.wait} it does not block or reject
|
||||
/// on a terminal failure state. States a newer server reports that this
|
||||
|
||||
Reference in New Issue
Block a user