Hyperlinkv0.8.0-beta.28

Process

Process.ProcessSnapshotinterfacesrc/Process.ts:142

A one-shot read of a managed process's runtime mirror — the observable state the supervisor maintains as it reconciles the schedule and spawns instances. Native (engine-side) types; the toolkit contract (processStatus) maps these to its wire form.

Source src/Process.ts:14222 lines
export interface ProcessSnapshot {
  /** Whether the schedule currently places the process in a run window (derived from entries). */
  readonly armed: boolean;
  /** How many run instances are executing right now. */
  readonly activeInstances: number;
  /** When the next run instance is expected to start (none if disarmed/idle). */
  readonly nextTriggerRun: Option.Option<Date>;
  /** When the schedule next changes armed/disarmed (none if no future transition). */
  readonly nextScheduleTransition: Option.Option<Date>;
  /** The in-instance repeat cadence, when polling is configured (none otherwise). */
  readonly nextPollCadence: Option.Option<Duration.Duration>;
  /** Total effect runs started (scheduled + polling + manual {@link run}) since the layer built. */
  readonly runsStarted: number;
  /** Of those, how many completed successfully. */
  readonly runsSucceeded: number;
  /** Of those, how many failed. */
  readonly runsFailed: number;
  /** When the most recent run started (none if it hasn't run yet). */
  readonly lastRunStartedAt: Option.Option<Date>;
  /** Wall-clock duration of the most recent finished run, in ms (none if none finished). */
  readonly lastRunDurationMillis: Option.Option<number>;
}
Referenced by 1 symbols