NodeRetry

data class NodeRetry<out State>(val step: Int, val node: String, val attempt: Int, val cause: Throwable, val pause: Duration, val state: State, val item: Int? = null) : 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.

For a node that runs for each item of a list, a try is the work of one item, and item says which.

Constructors

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

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
val item: Int?

the position in the list of the item that is tried again, for a node that runs for each item of a list. null for every other node.

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