Home

Execution Mode

This is an enumeration used in Stencila Schema controlling when executable nodes should run.

It exists so execution policy can be represented consistently across code, prompts, forms, and other executable nodes. Using a controlled vocabulary allows tools and renderers to agree on execution behavior without format-specific conventions.

See Executable.executionMode for the main property that uses this enumeration.

Members

The ExecutionMode type has these members:

MemberDescription
DemandExecute on demand only.
NeedExecute on demand and, if the node is stale, when the document or ancestor node is executed.
AlwaysExecute on demand and whenever the document or ancestor node is executed. Use this for nodes that you want to always be executed, even if they, or their upstream dependencies, are not stale.
AutoExecute on demand, and automatically if it is stale, including if is an upstream dependency of a node that is to be executed, or is a downstream dependant of a node that has been executed.
LockDo not execute the node. Requires that the node is unlocked first to be executed.

Bindings

The ExecutionMode type is represented in:


This documentation was generated from ExecutionMode.yaml by docs_types.rs.

© 2026 Stencila