Skip to main content

Module close

Module close 

Source
Expand description

The iteration-close path, shared by the engine API verb and the close_iteration/3 NIF.

Both callers must produce the SAME durable effect — one atomic [IterationClosed + WorkflowContinuedAsNew + successor WorkflowStarted] batch through the loop’s one Recorder, no successor process, invariant records installed with retention pruning, samples fed into tolerance accounting — so the behaviour lives here once rather than in each caller. A close reached from compiled workflow code and a close reached from an operator API call are the same close.

Structs§

IterationCloseContext
The engine components one iteration close needs.

Functions§

close_iteration
Closes the current iteration at the continue-as-new boundary (R3.1).