Skip to main content
server.RetainedResultReader Kept result custody inside a transaction.

Methods

inspect

▸ inspect(result): Promise<KeptResult> A kept result (queryArtifacts.create) this component holds or kept, named by its id or by the request key this holder keeps it under, read under its file’s current source authority: current source permissions and erasure are read dependencies. No URL, secret or lease. Refused alike for an unknown result, another component’s and one whose sources the caller may not read.

Parameters

Returns

Promise<KeptResult>

deliver

▸ deliver(id, options?): Promise<WorkloadDelivery & { file: string }> This holder’s delivery of its kept result to its worker, as ctx.files.redeemWorkloadGrant returns one, under a workload grant of the result’s request key: the keep issued it, and once it has expired this reissues it under the file’s current source authority. expires_at bounds this delivery in epoch milliseconds. Mutations only.

Parameters

Returns

Promise<WorkloadDelivery & { file: string }>

end

▸ end(result): Promise<boolean> End a kept result this component holds, named by its id or by the request key it was kept under: the record, its hold on the file and its delivery grant end in this commit, and the file is reclaimed once nothing else retains it. Returns whether one ended. Mutations only.

Parameters

Returns

Promise<boolean>