From 8cf14326ad03612bd5930e654f7cefa8b738b6c8 Mon Sep 17 00:00:00 2001 From: Yu Ishikawa Date: Fri, 26 Dec 2025 15:27:33 +0900 Subject: [PATCH 1/2] Initialize elementary graph even if disabled Signed-off-by: Yu Ishikawa --- macros/edr/system/hooks/on_run_start.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/macros/edr/system/hooks/on_run_start.sql b/macros/edr/system/hooks/on_run_start.sql index 3a32f69aa..b21dd30cc 100644 --- a/macros/edr/system/hooks/on_run_start.sql +++ b/macros/edr/system/hooks/on_run_start.sql @@ -1,4 +1,7 @@ {% macro on_run_start() %} + {# Initialize the elemenatry graph no matter if elementary is enabled or not #} + {% do elementary.init_elementary_graph() %} + {% if not elementary.is_elementary_enabled() %} {% do return('') %} {% endif %} @@ -20,7 +23,6 @@ "schema": elementary_schema, } %} {% do elementary.edr_log("Runtime data: " ~ tojson(runtime), info=True) %} - {% do elementary.init_elementary_graph() %} {% if elementary.is_test_command() %} {{ elementary.create_elementary_tests_schema() }} From 6c34eaeb9c65bb77b3f329badb711ebfe377387f Mon Sep 17 00:00:00 2001 From: Yu Ishikawa Date: Fri, 26 Dec 2025 19:04:52 +0900 Subject: [PATCH 2/2] Update macros/edr/system/hooks/on_run_start.sql --- macros/edr/system/hooks/on_run_start.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/edr/system/hooks/on_run_start.sql b/macros/edr/system/hooks/on_run_start.sql index b21dd30cc..ea546679a 100644 --- a/macros/edr/system/hooks/on_run_start.sql +++ b/macros/edr/system/hooks/on_run_start.sql @@ -1,5 +1,5 @@ {% macro on_run_start() %} - {# Initialize the elemenatry graph no matter if elementary is enabled or not #} + {# Initialize the elementary graph no matter if elementary is enabled or not #} {% do elementary.init_elementary_graph() %} {% if not elementary.is_elementary_enabled() %}