From 687bb73d5ac812dbb075384d014ced37da63a1c5 Mon Sep 17 00:00:00 2001 From: Alex Chantavy Date: Wed, 18 Sep 2024 10:56:03 -0700 Subject: [PATCH] Fix #689: correctly pass job name to GraphStatement --- cartography/graph/job.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cartography/graph/job.py b/cartography/graph/job.py index 517ba21450..60fe777215 100644 --- a/cartography/graph/job.py +++ b/cartography/graph/job.py @@ -150,7 +150,14 @@ def from_node_schema( ) statements: List[GraphStatement] = [ - GraphStatement(query, parameters=parameters, iterative=True, iterationsize=100) for query in queries + GraphStatement( + query, + parameters=parameters, + iterative=True, + iterationsize=100, + parent_job_name=node_schema.label, + parent_job_sequence_num=idx, + ) for idx, query in enumerate(queries, start=1) ] return cls(