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:
Xuanwo
2026-11-25 23:14:04 +08:00
committed by GitHub
parent 757dcc0a6b
commit 4d9fd358f8
24 changed files with 2257 additions and 64 deletions
+118 -12
View File
@@ -952,41 +952,81 @@ that version; a latest handle retains normal read-freshness behavior.
***
### functionErrorRows()
```ts
functionErrorRows(options?): Promise<FunctionFailedRow[]>
```
Read current failing inputs, one result per error record.
Requires a complete LanceDB Enterprise workflow version 1 listing with
row identities. Throws if a failed row is no longer addressable in the
table's read snapshot. For materialized views, see the source identities
on each error record returned by [Table#functionErrors](Table.md#functionerrors).
#### Parameters
* **options?**: [`FunctionErrorRowsOptions`](../interfaces/FunctionErrorRowsOptions.md)
#### Returns
`Promise`&lt;[`FunctionFailedRow`](../interfaces/FunctionFailedRow.md)[]&gt;
***
### functionErrors()
```ts
abstract functionErrors(options?): Promise<FunctionErrors>
```
The per-row errors Function refreshes recorded on this table.
List the per-row errors recorded by Function refreshes on this table.
A refresh running under a skip policy records each row it skipped with
the input that failed and the error. This lists those records, newest
job first, plus a summary for any fragment whose per-row detail was
capped. LanceDB Enterprise only; reading errors needs read
access to the table, since a message carries the value that failed.
On LanceDB Enterprise with workflow version 1 or later, the default
lists current failures. Set `history: true` to include retained attempts
for repaired rows. Older deployments keep their existing default listing.
Reading errors requires table read access because messages can include the
input that failed. `errorGroups` describes the returned records.
#### Parameters
* **options?**: [`FunctionErrorsOptions`](../interfaces/FunctionErrorsOptions.md)
Optional filters: `jobId`,
`column`, and `limit` (server default 10000, cap 100000).
#### Returns
`Promise`&lt;[`FunctionErrors`](../interfaces/FunctionErrors.md)&gt;
The records, the capped fragments,
and whether the listing stopped at its limit.
#### Example
```ts
const { records, truncated } = await table.functionErrors({ column: "embedding" });
const errors = await table.functionErrors({ column: "embedding" });
console.log(errors.records, errors.errorGroups);
```
***
### functionProvenance()
```ts
functionProvenance(_column, _options?): Promise<FunctionProvenance>
```
Read the producing Function version and job for each returned value.
Check `truncated` before treating the result as a complete listing.
Requires LanceDB Enterprise Function failure workflow version 1 or later.
#### Parameters
* **\_column**: `string`
* **\_options?**: [`FunctionProvenanceOptions`](../interfaces/FunctionProvenanceOptions.md)
#### Returns
`Promise`&lt;[`FunctionProvenance`](../interfaces/FunctionProvenance.md)&gt;
***
### getRTESpec()
```ts
@@ -1350,6 +1390,28 @@ Prewarm an index in the table.
***
### quarantineFailed()
```ts
quarantineFailed(_column, _options?): Promise<number>
```
Quarantine current failures and return the number of affected rows.
Set `quarantined: false` to release them for future refreshes.
Requires LanceDB Enterprise Function failure workflow version 1 or later.
#### Parameters
* **\_column**: `string`
* **\_options?**: [`FunctionQuarantineOptions`](../interfaces/FunctionQuarantineOptions.md)
#### Returns
`Promise`&lt;`number`&gt;
***
### query()
```ts
@@ -1560,6 +1622,28 @@ out state and the read_consistency_interval, if any, will apply.
***
### retryFailed()
```ts
retryFailed(_column, _options?): Promise<Job<RefreshColumnJobResult>>
```
Start a job to retry exactly the current failures of one Function column.
Filters apply on the server. Quarantined rows are excluded by default.
Requires LanceDB Enterprise Function failure workflow version 1 or later.
#### Parameters
* **\_column**: `string`
* **\_options?**: [`RetryFailedOptions`](../interfaces/RetryFailedOptions.md)
#### Returns
`Promise`&lt;[`Job`](Job.md)&lt;[`RefreshColumnJobResult`](../interfaces/RefreshColumnJobResult.md)&gt;&gt;
***
### schema()
```ts
@@ -1932,6 +2016,28 @@ await table.updateTableOverrides({
***
### upgradeColumn()
```ts
upgradeColumn(_column, _options): Promise<Job<RefreshColumnJobResult>>
```
Start an upgrade to an existing immutable Function version and choose
which rows to recompute. New and changed inputs use the new version.
Requires LanceDB Enterprise Function failure workflow version 1 or later.
#### Parameters
* **\_column**: `string`
* **\_options**: [`UpgradeColumnOptions`](../interfaces/UpgradeColumnOptions.md)
#### Returns
`Promise`&lt;[`Job`](Job.md)&lt;[`RefreshColumnJobResult`](../interfaces/RefreshColumnJobResult.md)&gt;&gt;
***
### vectorSearch()
```ts
+11
View File
@@ -106,15 +106,22 @@
- [FunctionColumnStatus](interfaces/FunctionColumnStatus.md)
- [FunctionColumnVersionStatus](interfaces/FunctionColumnVersionStatus.md)
- [FunctionErrorFragment](interfaces/FunctionErrorFragment.md)
- [FunctionErrorGroup](interfaces/FunctionErrorGroup.md)
- [FunctionErrorRecord](interfaces/FunctionErrorRecord.md)
- [FunctionErrorRowsOptions](interfaces/FunctionErrorRowsOptions.md)
- [FunctionErrors](interfaces/FunctionErrors.md)
- [FunctionErrorsOptions](interfaces/FunctionErrorsOptions.md)
- [FunctionFailedRow](interfaces/FunctionFailedRow.md)
- [FunctionProfile](interfaces/FunctionProfile.md)
- [FunctionProfileOptions](interfaces/FunctionProfileOptions.md)
- [FunctionProfileWaitOptions](interfaces/FunctionProfileWaitOptions.md)
- [FunctionProvenance](interfaces/FunctionProvenance.md)
- [FunctionProvenanceOptions](interfaces/FunctionProvenanceOptions.md)
- [FunctionQuarantineOptions](interfaces/FunctionQuarantineOptions.md)
- [FunctionRefreshPlanningConfig](interfaces/FunctionRefreshPlanningConfig.md)
- [FunctionRefreshPodResources](interfaces/FunctionRefreshPodResources.md)
- [FunctionRetryPolicy](interfaces/FunctionRetryPolicy.md)
- [FunctionValueProvenance](interfaces/FunctionValueProvenance.md)
- [HnswPqOptions](interfaces/HnswPqOptions.md)
- [HnswSqOptions](interfaces/HnswSqOptions.md)
- [IndexConfig](interfaces/IndexConfig.md)
@@ -145,6 +152,7 @@
- [RTEStats](interfaces/RTEStats.md)
- [RTEWriteSpec](interfaces/RTEWriteSpec.md)
- [RTreeOptions](interfaces/RTreeOptions.md)
- [RefreshColumnJobResult](interfaces/RefreshColumnJobResult.md)
- [RefreshColumnOptions](interfaces/RefreshColumnOptions.md)
- [RefreshColumnResult](interfaces/RefreshColumnResult.md)
- [RefreshMaterializedViewResult](interfaces/RefreshMaterializedViewResult.md)
@@ -152,6 +160,7 @@
- [RenameTableOptions](interfaces/RenameTableOptions.md)
- [RestNamespaceConfig](interfaces/RestNamespaceConfig.md)
- [RetryConfig](interfaces/RetryConfig.md)
- [RetryFailedOptions](interfaces/RetryFailedOptions.md)
- [ScannableOptions](interfaces/ScannableOptions.md)
- [SessionLogout](interfaces/SessionLogout.md)
- [SessionStatus](interfaces/SessionStatus.md)
@@ -174,6 +183,7 @@
- [UpdateFieldMetadataResult](interfaces/UpdateFieldMetadataResult.md)
- [UpdateOptions](interfaces/UpdateOptions.md)
- [UpdateResult](interfaces/UpdateResult.md)
- [UpgradeColumnOptions](interfaces/UpgradeColumnOptions.md)
- [Version](interfaces/Version.md)
- [ViewDescription](interfaces/ViewDescription.md)
- [WriteExecutionOptions](interfaces/WriteExecutionOptions.md)
@@ -199,6 +209,7 @@
- [FieldLike](type-aliases/FieldLike.md)
- [FunctionProfileKind](type-aliases/FunctionProfileKind.md)
- [FunctionProfileStatus](type-aliases/FunctionProfileStatus.md)
- [FunctionRecompute](type-aliases/FunctionRecompute.md)
- [IntoSql](type-aliases/IntoSql.md)
- [IntoVector](type-aliases/IntoVector.md)
- [JobProgressCallback](type-aliases/JobProgressCallback.md)
@@ -0,0 +1,41 @@
[**@lancedb/lancedb**](../README.md) • **Docs**
***
[@lancedb/lancedb](../globals.md) / FunctionErrorGroup
# Interface: FunctionErrorGroup
One cause among the returned Function errors.
## Properties
### column
```ts
column: string;
```
***
### errorMessage
```ts
errorMessage: string;
```
***
### errorType
```ts
errorType: string;
```
***
### rowsFailed
```ts
rowsFailed: bigint;
```
@@ -10,6 +10,16 @@ One row a Function refresh skipped, as the server recorded it.
## Properties
### attempts?
```ts
optional attempts: number;
```
Number of failed invocation attempts, when recorded.
***
### column
```ts
@@ -42,6 +52,16 @@ errorType: string;
***
### firstSeenAtMillis?
```ts
optional firstSeenAtMillis: number;
```
First failure time for this row, when recorded.
***
### fragmentId
```ts
@@ -66,6 +86,16 @@ functionVersion: string;
***
### input?
```ts
optional input: unknown;
```
Source identities for a materialized-view Function invocation.
***
### jobId
```ts
@@ -74,6 +104,46 @@ jobId: string;
***
### lastSeenAtMillis?
```ts
optional lastSeenAtMillis: number;
```
Latest failure time for this row, when recorded.
***
### quarantined?
```ts
optional quarantined: boolean;
```
Whether the failure is quarantined. Absent on older listings.
***
### rowAddress?
```ts
optional rowAddress: bigint;
```
Physical row address at the recorded version. A rewrite can change it.
***
### rowId?
```ts
optional rowId: bigint;
```
Stable row identity when recorded. It survives compaction and rewrite.
***
### rowOffset?
```ts
@@ -0,0 +1,65 @@
[**@lancedb/lancedb**](../README.md) • **Docs**
***
[@lancedb/lancedb](../globals.md) / FunctionErrorRowsOptions
# Interface: FunctionErrorRowsOptions
Filters and projection for current failing inputs.
## Extends
- `Pick`&lt;[`FunctionErrorsOptions`](FunctionErrorsOptions.md), `"column"` \| `"jobId"` \| `"limit"`&gt;
## Properties
### column?
```ts
optional column: string;
```
Only errors on this column.
#### Inherited from
`Pick.column`
***
### columns?
```ts
optional columns: string[];
```
Source columns to return. Defaults to all source columns.
***
### jobId?
```ts
optional jobId: string;
```
Only errors recorded by this job.
#### Inherited from
`Pick.jobId`
***
### limit?
```ts
optional limit: number;
```
At most this many records (server default 10000, cap 100000).
#### Inherited from
`Pick.limit`
+21
View File
@@ -10,6 +10,17 @@ A table's per-row Function errors.
## Properties
### errorGroups?
```ts
optional errorGroups: FunctionErrorGroup[];
```
Grouped causes over the returned records, if the server supports the workflow.
Counts can be incomplete. Check `truncated` and `fragments` before using them as totals.
***
### fragments
```ts
@@ -47,3 +58,13 @@ truncated: boolean;
```
Whether the listing stopped at its limit.
***
### workflowVersion?
```ts
optional workflowVersion: number;
```
Version of the Enterprise row-failure workflow, if advertised by the server.
@@ -20,6 +20,16 @@ Only errors on this column.
***
### history?
```ts
optional history: boolean;
```
Include retained historical attempts, including repaired rows. Requires workflow version 1 or later.
***
### jobId?
```ts
@@ -0,0 +1,29 @@
[**@lancedb/lancedb**](../README.md) • **Docs**
***
[@lancedb/lancedb](../globals.md) / FunctionFailedRow
# Interface: FunctionFailedRow
A failed Function-column row and its source data at the table's read snapshot.
## Properties
### error
```ts
error: FunctionErrorRecord;
```
The failure for this row and Function column.
***
### input
```ts
input: Record<string, unknown>;
```
Values of the requested source columns.
@@ -0,0 +1,27 @@
[**@lancedb/lancedb**](../README.md) • **Docs**
***
[@lancedb/lancedb](../globals.md) / FunctionProvenance
# Interface: FunctionProvenance
A bounded producing-version listing for a table snapshot.
## Properties
### records
```ts
records: FunctionValueProvenance[];
```
***
### truncated
```ts
truncated: boolean;
```
Whether the listing stopped at its limit.
@@ -0,0 +1,29 @@
[**@lancedb/lancedb**](../README.md) • **Docs**
***
[@lancedb/lancedb](../globals.md) / FunctionProvenanceOptions
# Interface: FunctionProvenanceOptions
Snapshot and record limit for a producing-version listing.
## Properties
### limit?
```ts
optional limit: number;
```
Maximum records to return (server default 10000, cap 100000).
***
### version?
```ts
optional version: number | bigint;
```
An exact table version. Defaults to the table handle's read version.
@@ -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.
@@ -0,0 +1,73 @@
[**@lancedb/lancedb**](../README.md) • **Docs**
***
[@lancedb/lancedb](../globals.md) / FunctionValueProvenance
# Interface: FunctionValueProvenance
The Function and job that produced one stored value.
## Properties
### column
```ts
column: string;
```
***
### functionName
```ts
functionName: string;
```
***
### functionVersion
```ts
functionVersion: string;
```
***
### jobId
```ts
jobId: string;
```
***
### publishedVersion
```ts
publishedVersion: bigint;
```
***
### rowAddress?
```ts
optional rowAddress: bigint;
```
***
### rowId?
```ts
optional rowId: bigint;
```
***
### sourceVersion
```ts
sourceVersion: bigint;
```
@@ -0,0 +1,79 @@
[**@lancedb/lancedb**](../README.md) • **Docs**
***
[@lancedb/lancedb](../globals.md) / RefreshColumnJobResult
# Interface: RefreshColumnJobResult
The terminal outcome of a Function retry or upgrade job.
## Properties
### errorGroups
```ts
errorGroups: FunctionErrorGroup[];
```
Grouped causes reported by the completed job.
***
### errorGroupsTruncated
```ts
errorGroupsTruncated: boolean;
```
Whether the reported cause counts omit any failures.
***
### publishedVersion?
```ts
optional publishedVersion: bigint;
```
The table version made visible by the job, if it published one.
***
### rowsAssigned
```ts
rowsAssigned: bigint;
```
Logical rows successfully assigned a value.
***
### rowsFailed
```ts
rowsFailed: bigint;
```
Logical rows whose computation failed.
***
### rowsRemaining
```ts
rowsRemaining: bigint;
```
Logical rows still needing a value, excluding rows counted in `rowsFailed`.
***
### sourceVersion
```ts
sourceVersion: bigint;
```
The exact table version read by the job.
@@ -28,8 +28,8 @@ Maximum rows per Function call; must be greater than zero.
optional errorPolicy: string;
```
`"fail"` (default) stops on a row error; `"skip"` writes null and
records the error, subject to the failure limits.
`"fail"` stops on a row error; `"skip"` records it and continues,
subject to the failure limits. The default is server-dependent.
***
@@ -0,0 +1,312 @@
[**@lancedb/lancedb**](../README.md) • **Docs**
***
[@lancedb/lancedb](../globals.md) / RetryFailedOptions
# Interface: RetryFailedOptions
Options for retrying exactly the current failures of one Function column.
## Extends
- `Omit`&lt;[`RefreshColumnOptions`](RefreshColumnOptions.md), `"where"`&gt;
## Properties
### batchSize?
```ts
optional batchSize: number;
```
Maximum rows per Function call; must be greater than zero.
#### Inherited from
`Omit.batchSize`
***
### errorPolicy?
```ts
optional errorPolicy: string;
```
`"fail"` stops on a row error; `"skip"` records it and continues,
subject to the failure limits. The default is server-dependent.
#### Inherited from
`Omit.errorPolicy`
***
### errorType?
```ts
optional errorType: string;
```
Only retry failures with this exception class.
***
### functionVersion?
```ts
optional functionVersion: string;
```
Upgrade to this immutable Function version while retrying failures.
***
### gpuClass?
```ts
optional gpuClass: string;
```
GPU class for Function workers.
#### Inherited from
`Omit.gpuClass`
***
### gpuCount?
```ts
optional gpuCount: number;
```
Positive GPU count allocated to each Function worker.
#### Inherited from
`Omit.gpuCount`
***
### includeQuarantined?
```ts
optional includeQuarantined: boolean;
```
Explicitly release and retry matching quarantined failures.
***
### initTimeoutSeconds?
```ts
optional initTimeoutSeconds: number;
```
Deadline for Function initialization, in seconds.
#### Inherited from
`Omit.initTimeoutSeconds`
***
### jobId?
```ts
optional jobId: string;
```
Only retry current failures recorded by this job.
***
### maxConcurrency?
```ts
optional maxConcurrency: number;
```
Override the registered Function's maximum concurrent user-code calls
for this logical execution.
#### Inherited from
`Omit.maxConcurrency`
***
### maxExecutorProcessesPerWorker?
```ts
optional maxExecutorProcessesPerWorker: number;
```
Cap on executor processes per Function worker.
#### Inherited from
`Omit.maxExecutorProcessesPerWorker`
***
### maxFailedFraction?
```ts
optional maxFailedFraction: number;
```
Under a skip policy, fail the job once more than this share of rows
(0 to 1) has failed.
#### Inherited from
`Omit.maxFailedFraction`
***
### maxFailedRows?
```ts
optional maxFailedRows: number;
```
Under a skip policy, fail the job once more than this many rows have
failed.
#### Inherited from
`Omit.maxFailedRows`
***
### numWorkers?
```ts
optional numWorkers: number;
```
Worker count for an expression column; Function columns reject it.
#### Inherited from
`Omit.numWorkers`
***
### planningWorkers?
```ts
optional planningWorkers: FunctionRefreshPlanningConfig;
```
Resources and sizing for the refresh planning fleet.
#### Inherited from
`Omit.planningWorkers`
***
### publicationIntervalRows?
```ts
optional publicationIntervalRows: number;
```
Row-count threshold for publishing completed Function split ranges.
Must be a positive safe integer. Omit for whole-fragment publication.
Actual publications can be larger; remaining rows publish at completion.
Requires LanceDB Enterprise with non-Blob Function outputs.
#### Inherited from
`Omit.publicationIntervalRows`
***
### retryPolicy?
```ts
optional retryPolicy: FunctionRetryPolicy;
```
Override retries of failed user-code calls for this refresh.
#### Inherited from
`Omit.retryPolicy`
***
### rowTimeoutSeconds?
```ts
optional rowTimeoutSeconds: number;
```
Deadline for one Function call, in seconds.
#### Inherited from
`Omit.rowTimeoutSeconds`
***
### supervisorResources?
```ts
optional supervisorResources: FunctionRefreshPodResources;
```
CPU, memory, and ephemeral-storage limits for the refresh supervisor.
#### Inherited from
`Omit.supervisorResources`
***
### totalCpuMillis?
```ts
optional totalCpuMillis: number;
```
Override the total CPU budget in millicores for this refresh.
#### Inherited from
`Omit.totalCpuMillis`
***
### totalGpuCount?
```ts
optional totalGpuCount: number;
```
Nonnegative total GPU budget for Function workers.
#### Inherited from
`Omit.totalGpuCount`
***
### totalMemoryBytes?
```ts
optional totalMemoryBytes: number;
```
Override the total memory budget in bytes for this refresh.
#### Inherited from
`Omit.totalMemoryBytes`
@@ -0,0 +1,292 @@
[**@lancedb/lancedb**](../README.md) • **Docs**
***
[@lancedb/lancedb](../globals.md) / UpgradeColumnOptions
# Interface: UpgradeColumnOptions
Options for assigning a new immutable Function version to a column.
## Extends
- `Omit`&lt;[`RefreshColumnOptions`](RefreshColumnOptions.md), `"where"`&gt;
## Properties
### batchSize?
```ts
optional batchSize: number;
```
Maximum rows per Function call; must be greater than zero.
#### Inherited from
`Omit.batchSize`
***
### errorPolicy?
```ts
optional errorPolicy: string;
```
`"fail"` stops on a row error; `"skip"` records it and continues,
subject to the failure limits. The default is server-dependent.
#### Inherited from
`Omit.errorPolicy`
***
### gpuClass?
```ts
optional gpuClass: string;
```
GPU class for Function workers.
#### Inherited from
`Omit.gpuClass`
***
### gpuCount?
```ts
optional gpuCount: number;
```
Positive GPU count allocated to each Function worker.
#### Inherited from
`Omit.gpuCount`
***
### initTimeoutSeconds?
```ts
optional initTimeoutSeconds: number;
```
Deadline for Function initialization, in seconds.
#### Inherited from
`Omit.initTimeoutSeconds`
***
### maxConcurrency?
```ts
optional maxConcurrency: number;
```
Override the registered Function's maximum concurrent user-code calls
for this logical execution.
#### Inherited from
`Omit.maxConcurrency`
***
### maxExecutorProcessesPerWorker?
```ts
optional maxExecutorProcessesPerWorker: number;
```
Cap on executor processes per Function worker.
#### Inherited from
`Omit.maxExecutorProcessesPerWorker`
***
### maxFailedFraction?
```ts
optional maxFailedFraction: number;
```
Under a skip policy, fail the job once more than this share of rows
(0 to 1) has failed.
#### Inherited from
`Omit.maxFailedFraction`
***
### maxFailedRows?
```ts
optional maxFailedRows: number;
```
Under a skip policy, fail the job once more than this many rows have
failed.
#### Inherited from
`Omit.maxFailedRows`
***
### numWorkers?
```ts
optional numWorkers: number;
```
Worker count for an expression column; Function columns reject it.
#### Inherited from
`Omit.numWorkers`
***
### planningWorkers?
```ts
optional planningWorkers: FunctionRefreshPlanningConfig;
```
Resources and sizing for the refresh planning fleet.
#### Inherited from
`Omit.planningWorkers`
***
### publicationIntervalRows?
```ts
optional publicationIntervalRows: number;
```
Row-count threshold for publishing completed Function split ranges.
Must be a positive safe integer. Omit for whole-fragment publication.
Actual publications can be larger; remaining rows publish at completion.
Requires LanceDB Enterprise with non-Blob Function outputs.
#### Inherited from
`Omit.publicationIntervalRows`
***
### recompute?
```ts
optional recompute: FunctionRecompute;
```
Defaults to `"all"`. Quarantined failures are excluded.
***
### retryPolicy?
```ts
optional retryPolicy: FunctionRetryPolicy;
```
Override retries of failed user-code calls for this refresh.
#### Inherited from
`Omit.retryPolicy`
***
### rowTimeoutSeconds?
```ts
optional rowTimeoutSeconds: number;
```
Deadline for one Function call, in seconds.
#### Inherited from
`Omit.rowTimeoutSeconds`
***
### supervisorResources?
```ts
optional supervisorResources: FunctionRefreshPodResources;
```
CPU, memory, and ephemeral-storage limits for the refresh supervisor.
#### Inherited from
`Omit.supervisorResources`
***
### totalCpuMillis?
```ts
optional totalCpuMillis: number;
```
Override the total CPU budget in millicores for this refresh.
#### Inherited from
`Omit.totalCpuMillis`
***
### totalGpuCount?
```ts
optional totalGpuCount: number;
```
Nonnegative total GPU budget for Function workers.
#### Inherited from
`Omit.totalGpuCount`
***
### totalMemoryBytes?
```ts
optional totalMemoryBytes: number;
```
Override the total memory budget in bytes for this refresh.
#### Inherited from
`Omit.totalMemoryBytes`
***
### version
```ts
version: string;
```
An existing immutable version of the bound Function.
@@ -0,0 +1,15 @@
[**@lancedb/lancedb**](../README.md) • **Docs**
***
[@lancedb/lancedb](../globals.md) / FunctionRecompute
# Type Alias: FunctionRecompute
```ts
type FunctionRecompute: "failed" | "all" | "none";
```
Which existing values to recompute during a Function version upgrade.
`"failed"` selects current failures. `"all"` refreshes every eligible live
row. `"none"` preserves existing values and only changes the binding.