Hyperlinkv0.9.0-beta.0

Daemon

Daemon.daemonStatusconstsrc/Daemon.ts:1535
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 daemon — the wire form of the engine's DaemonSnapshot (plus supervising). The element of the reactive status field: status.get reads it once, status.changes streams it.

wire schemasDaemonSnapshot
Source src/Daemon.ts:153513 lines
export const daemonStatus = 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