Skip to main content

Module once

Module once 

Source
Expand description

The Once block: “do this once for this key” (docs/specs/SPEC_DRONE_REAL_WORLD_JOBS_2026_11_11.md §4.2).

{ "kind": "once", "key": "{{trigger.run_id}}" }. The first run of the drone to reach it with a key goes on; a later run with the same key takes the other branch. It answers like a Condition does: result is true for the first and false for every later one, and the edges off its true and false handles carry the run on by it. The keys are kept in this machine’s store, per drone, until the drone is deleted. The cloud form (across machines) comes with the cloud phases.

Constants§

MAX_KEY 🔒
The longest key. A key is a short name for the thing done once (a run id, a commit, an issue number).

Functions§

key_of 🔒
The key the block names, with its templates filled in.
run