Spectre.Operation.Runtime.Controls (Spectre v0.3.0)

Copy Markdown View Source

Control-plane command handling for the operation runtime.

Commits durable control requests, advances pending pause/update/resume/stop sequences at quiescent boundaries, applies validated updates through the controller and rejects commands that can no longer be honored. Trigger commands re-enter Spectre.Operation.Runtime.trigger/5.

Summary

Functions

Advances a pending pause/update/resume sequence once the loop is quiescent.

Rejects a control command, pausing after rejected updates.

Commits a durable control request without executing it reentrantly.

Types

pid_action()

@type pid_action() :: :keep_runner | {:terminate_runner, String.t()}

Functions

advance(loop, control, env)

Advances a pending pause/update/resume sequence once the loop is quiescent.

reject(loop, control, command, reason, env)

Rejects a control command, pausing after rejected updates.

request(loop, control, command, env)

Commits a durable control request without executing it reentrantly.