NodeRetry

data class NodeRetry<out State>(val step: Int, val node: String, val attempt: Int, val cause: Throwable, val pause: Duration, val state: State) : GraphEvent<State>

A try of node failed in step, and the node will run again because it has a Retry. The event arrives before the engine waits for pause. The node has one NodeStarted and one NodeCompleted, however often it is tried.

The next try reports its progress from the start. A screen that shows what NodeProgress brought, such as the text a model writes, clears it for node when this event arrives.

The last try of a node has no event: when it fails, the run fails with a NodeExecutionException.

Constructors

Link copied to clipboard
constructor(step: Int, node: String, attempt: Int, cause: Throwable, pause: Duration, state: State)

Properties

Link copied to clipboard

the number of the try that failed, starting at 1.

Link copied to clipboard

what the node threw, or a NodeTimeoutException when the try took too long.

Link copied to clipboard
Link copied to clipboard

how long the engine waits before the next try.

Link copied to clipboard
open override val state: State

the state the node received, and receives again.

Link copied to clipboard
val step: Int