orka.nodes.failing_node module

class orka.nodes.failing_node.FailingNode(node_id, prompt, queue, **kwargs)[source]

Bases: BaseNode

A node that simulates failure for testing purposes. Intentionally raises a RuntimeError after a delay.

property id

Get the ID of the node.

Returns:

The node ID.

Return type:

str

run(input_data)[source]

Simulate a failing node by raising a RuntimeError after a delay.

Parameters:

input_data – Input data for the node (unused in this implementation).

Raises:

RuntimeError – Always raises an error to simulate failure.