Skip to content

Jayrun 0.3.3

Choose a tag to compare

@github-actions github-actions released this 22 Nov 22:13
· 5 commits to main since this release

Jayrun 0.3.3 — read the current graph iteration

An operator or resource setup hook can now read self.context.iteration directly.
It starts at 1 and advances with each graph iteration. An operator that repeats
twice in one graph pass sees the same iteration on all three executions.

For example, an operator can label a measurement with both the graph pass and
its execution number within that pass:

self.context.record("position", {
    "iteration": self.context.iteration,
    "execution": self.execution.number,
})

The property is read-only. Applications observing a run can continue using
run.iteration_count to see how many graph iterations have started.
Iteration guide