EntropyEngine::Core::Concurrency::NodeCancelledEvent
EntropyEngine::Core::Concurrency::NodeCancelledEvent
Section titled “EntropyEngine::Core::Concurrency::NodeCancelledEvent”A node was cancelled due to upstream failure. More…
#include <WorkGraphEvents.h>
Inherits from EntropyEngine::Core::Concurrency::WorkGraphEvent
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| NodeCancelledEvent(const WorkGraph * g, NodeHandle n, NodeHandle parent =NodeHandle()) |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| NodeHandle | node The cancelled node. |
| NodeHandle | failedParent Which parent’s failure caused this (may be invalid). |
Additional inherited members
Section titled “Additional inherited members”Public Functions inherited from EntropyEngine::Core::Concurrency::WorkGraphEvent
| Name | |
|---|---|
| WorkGraphEvent(const WorkGraph * g) |
Public Attributes inherited from EntropyEngine::Core::Concurrency::WorkGraphEvent
| Name | |
|---|---|
| std::chrono::steady_clock::time_point | timestamp When this event was created. |
| const WorkGraph * | graph Which graph emitted this event. |
Detailed Description
Section titled “Detailed Description”struct EntropyEngine::Core::Concurrency::NodeCancelledEvent;A node was cancelled due to upstream failure.
When a parent node fails, all its descendants get cancelled since their inputs are invalid. This event tells you which nodes were skipped and why. The failedParent tells you which upstream failure caused this cancellation.
eventBus->subscribe<NodeCancelledEvent>([](const auto& event) { LOG_WARN("Node {} cancelled due to failure of {}", event.node.getData()->name, event.failedParent.valid() ? event.failedParent.getData()->name : "unknown");});Public Functions Documentation
Section titled “Public Functions Documentation”function NodeCancelledEvent
Section titled “function NodeCancelledEvent”inline NodeCancelledEvent( const WorkGraph * g, NodeHandle n, NodeHandle parent =NodeHandle())Public Attributes Documentation
Section titled “Public Attributes Documentation”variable node
Section titled “variable node”NodeHandle node;The cancelled node.
variable failedParent
Section titled “variable failedParent”NodeHandle failedParent;Which parent’s failure caused this (may be invalid).
Updated on 2026-01-26 at 17:14:35 -0500