mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-27 04:53:59 +00:00
feat(nodejs): expose Function failure recovery APIs (#5209)
TypeScript callers can now inspect and recover Function row failures through the native workflow. `functionErrors()` groups returned failures and can show retained attempt history. `functionErrorRows()` looks up current failed inputs using row IDs and physical row addresses represented as `bigint`. Older deployments can continue to use the existing error listing. `retryFailed()` selects the exact failed rows on the server, with optional error type and job filters. `upgradeColumn()` binds an existing immutable Function version and can recompute failed rows, all eligible rows, or no rows. Callers can quarantine and release failures, explicitly include quarantined rows in a retry, and use `functionProvenance()` to see which Function version produced a recorded value. The native operations reuse the existing Rust workflow v1 capability checks. The Function failures guide includes TypeScript examples for inspecting, retrying, upgrading, and quarantining failures.
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
[**@lancedb/lancedb**](../README.md) • **Docs**
|
||||
|
||||
***
|
||||
|
||||
[@lancedb/lancedb](../globals.md) / FunctionQuarantineOptions
|
||||
|
||||
# Interface: FunctionQuarantineOptions
|
||||
|
||||
Select current failures to quarantine or release.
|
||||
|
||||
## Properties
|
||||
|
||||
### afterAttempts?
|
||||
|
||||
```ts
|
||||
optional afterAttempts: number;
|
||||
```
|
||||
|
||||
Only failures with at least this many attempts. Defaults to 1.
|
||||
|
||||
***
|
||||
|
||||
### errorType?
|
||||
|
||||
```ts
|
||||
optional errorType: string;
|
||||
```
|
||||
|
||||
Only failures with this exception class.
|
||||
|
||||
***
|
||||
|
||||
### jobId?
|
||||
|
||||
```ts
|
||||
optional jobId: string;
|
||||
```
|
||||
|
||||
Only failures recorded by this job.
|
||||
|
||||
***
|
||||
|
||||
### quarantined?
|
||||
|
||||
```ts
|
||||
optional quarantined: boolean;
|
||||
```
|
||||
|
||||
Quarantine by default. Set false to release failures for later refreshes.
|
||||
Reference in New Issue
Block a user