Skip to content

EntropyEngine::Core::Concurrency::GraphExecutionStartedEvent

EntropyEngine::Core::Concurrency::GraphExecutionStartedEvent

Section titled “EntropyEngine::Core::Concurrency::GraphExecutionStartedEvent”

The starting gun - workflow execution begins! More…

#include <WorkGraphEvents.h>

Inherits from EntropyEngine::Core::Concurrency::WorkGraphEvent

Name
GraphExecutionStartedEvent(const WorkGraph * g, size_t total, size_t roots)
Name
size_ttotalNodes
How many nodes in the entire graph.
size_trootNodes
How many have no dependencies.

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::GraphExecutionStartedEvent;

The starting gun - workflow execution begins!

Fired when execute() is called. Gives you the big picture: how many total nodes need to run and how many root nodes (no dependencies) are kicking things off. Perfect for initializing progress tracking.

eventBus->subscribe<GraphExecutionStartedEvent>([](const auto& event) {
LOG_INFO("Starting workflow with {} nodes ({} roots)",
event.totalNodes, event.rootNodes);
initProgressBar(event.totalNodes);
});
inline GraphExecutionStartedEvent(
const WorkGraph * g,
size_t total,
size_t roots
)
size_t totalNodes;

How many nodes in the entire graph.

size_t rootNodes;

How many have no dependencies.


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