Skip to content
Français

TaskCacheEntry

import type { TaskCacheEntry } from "@elie-laloum/outpost";
  • formatRequired
    1
    Version of this serialized entry format; currently 1.
  • fingerprintRequired
    string
    SHA-256 hex digest of the workflow name, task key, cache version and canonical key; entries whose fingerprint differs are rejected.
  • workflowRequired
    string
    Name of the workflow that stored the entry.
  • taskRequired
    string
    Key of the task whose result the entry holds.
  • versionRequired
    string
    Cache version declared by the task when the entry was stored.
  • createdAtRequired
    string
    ISO timestamp when the result was stored; compared with maxAgeMs.
  • valueRequired
    WorkflowCheckpointValue
    Encoded result: { kind: “json”, value } for a lossless JSON value, or { kind: “undefined” }.
export interface TaskCacheEntry {
  readonly format: 1;
  readonly fingerprint: string;
  readonly workflow: string;
  readonly task: string;
  readonly version: string;
  readonly createdAt: string;
  readonly value: WorkflowCheckpointValue;
}