Skip to content

Image Pipeline Playground

feat(backend/engine): add duration_ms to execution events

Mohammad Rajaeiaaea27b042fb
diff --git a/backend/app/models/graph.py b/backend/app/models/graph.py
index b802699..0fe61e5 100644
--- a/backend/app/models/graph.py
+++ b/backend/app/models/graph.py
@@ -67,6 +67,7 @@ class ExecutionEvent(BaseModel):
image_b64: str | None = None
sample_index: int | None = None
cache_hit: bool | None = None
+ duration_ms: float | None = None
data: dict[str, Any] | None = None
diff --git a/frontend/src/types/graph.ts b/frontend/src/types/graph.ts
index c1dd27f..ccbd99b 100644
--- a/frontend/src/types/graph.ts
+++ b/frontend/src/types/graph.ts
@@ -71,4 +71,5 @@ export interface ExecutionEvent {
image_b64?: string | null
sample_index?: number | null
cache_hit?: boolean | null
+ duration_ms?: number | null
}