Skip to content

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

Name
NodeCancelledEvent(const WorkGraph * g, NodeHandle n, NodeHandle parent =NodeHandle())
Name
NodeHandlenode
The cancelled node.
NodeHandlefailedParent
Which parent’s failure caused this (may be invalid).

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_pointtimestamp
When this event was created.
const WorkGraph *graph
Which graph emitted this event.
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");
});
inline NodeCancelledEvent(
const WorkGraph * g,
NodeHandle n,
NodeHandle parent =NodeHandle()
)
NodeHandle node;

The cancelled node.

NodeHandle failedParent;

Which parent’s failure caused this (may be invalid).


Updated on 2026-01-26 at 17:14:35 -0500