Interface StepSkipped

An attempt reported Skipped.

import type { Event } from "itinera/event";

export function summary(event: Event): string {
if (event.kind === "step_failed") {
return `${event.step} failed: ${event.reason.code}`;
}
if (event.kind === "journey_aborted") {
return `aborted: ${event.abort.reason}`;
}
return `${event.kind} at ${event.timestamp}`;
}
interface StepSkipped {
    attempt: Attempt;
    journeyId: JourneyId;
    kind: "step_skipped";
    reason?: Reason;
    sequence: number;
    step: StepName;
    timestamp: Timestamp;
    workflow: WorkflowName;
}

Hierarchy (View Summary)

Index

attempt: Attempt

The attempt.

journeyId: JourneyId

The journey's ID.

kind: "step_skipped"

The event's kind, which tells what else it carries.

reason?: Reason

Why the step was skipped, when it said.

sequence: number

The event's position in its journey's event stream, from 1.

step: StepName

The step's name.

timestamp: Timestamp

When the event was emitted.

workflow: WorkflowName

The workflow's name.