Hyperlinkv0.8.0-beta.28

Process

Process.processStatusconstsrc/Process.ts:1529
Schema.Struct<{
  readonly supervising: Schema.Boolean
  readonly armed: Schema.Boolean
  readonly activeInstances: Schema.Number
  readonly nextTriggerRun: Schema.optionalKey<Schema.DateTimeUtc>
  readonly nextScheduleTransition: Schema.optionalKey<Schema.DateTimeUtc>
  readonly nextPollCadence: Schema.optionalKey<Schema.Duration>
  readonly runsStarted: Schema.Number
  readonly runsSucceeded: Schema.Number
  readonly runsFailed: Schema.Number
  readonly lastRunStartedAt: Schema.optionalKey<Schema.DateTimeUtc>
  readonly lastRunDurationMillis: Schema.optionalKey<Schema.Number>
}>

The current-state snapshot of a managed process — the wire form of the engine's ProcessSnapshot (plus supervising). The element of the reactive status field: status.get reads it once, status.changes streams it.

wire schemasProcessSnapshot
Source src/Process.ts:152913 lines
export const processStatus = Schema.Struct({
  supervising: Schema.Boolean,
  armed: Schema.Boolean,
  activeInstances: Schema.Number,
  nextTriggerRun: Schema.optionalKey(Schema.DateTimeUtc),
  nextScheduleTransition: Schema.optionalKey(Schema.DateTimeUtc),
  nextPollCadence: Schema.optionalKey(Schema.Duration),
  runsStarted: Schema.Number,
  runsSucceeded: Schema.Number,
  runsFailed: Schema.Number,
  lastRunStartedAt: Schema.optionalKey(Schema.DateTimeUtc),
  lastRunDurationMillis: Schema.optionalKey(Schema.Number),
});
Referenced by 1 symbols