clyops Node API
    Preparing search index...

    Function transitionJobRecord

    • Move a record on, pushing its current state onto the front of history. Returns a new record.

      Parameters

      • record: JobRecord
      • change: {
            completedAt?: string | null;
            error?: string | null;
            extra?: Record<string, unknown>;
            now?: string;
            resultKey?: string | null;
            stage?: string | null;
            status: JobStatus;
        }

      Returns JobRecord