Skip to main content

Module resource

Module resource 

Source
Expand description

A command’s resource value (M4.8d): what a CommandResource setup reports with schedr task-ctx resource set, and what a resource’s cleanup_command reads with resource get.

The value stays in memory: a setup’s attempt is stopped when its agent restarts (and runs again), and once it ends its value is its output, journaled with its result. It is masked then, with every secret the attempt read by its end.

Structs§

AttemptResource
An attempt’s resource value.

Enums§

ResourceError
Why the value can’t be reported or read.

Constants§

MAX_VALUE_SIZE
The most a value may take as stored JSON: what resource get can answer in one message of the context channel, less room for what wraps it.