@@ -416,6 +416,7 @@ def run_merged_intervals(
416416 start : t .Optional [TimeLike ] = None ,
417417 end : t .Optional [TimeLike ] = None ,
418418 allow_destructive_snapshots : t .Optional [t .Set [str ]] = None ,
419+ selected_models : t .Optional [t .Set [str ]] = None ,
419420 allow_additive_snapshots : t .Optional [t .Set [str ]] = None ,
420421 selected_snapshot_ids : t .Optional [t .Set [SnapshotId ]] = None ,
421422 run_environment_statements : bool = False ,
@@ -472,6 +473,7 @@ def run_merged_intervals(
472473 start = start ,
473474 end = end ,
474475 execution_time = execution_time ,
476+ selected_models = selected_models ,
475477 )
476478
477479 # We only need to create physical tables if the snapshot is not representative or if it
@@ -533,6 +535,7 @@ def run_node(node: SchedulingUnit) -> None:
533535 allow_destructive_snapshots = allow_destructive_snapshots ,
534536 allow_additive_snapshots = allow_additive_snapshots ,
535537 target_table_exists = snapshot .snapshot_id not in snapshots_to_create ,
538+ selected_models = selected_models ,
536539 )
537540
538541 evaluation_duration_ms = now_timestamp () - execution_start_ts
@@ -602,6 +605,7 @@ def run_node(node: SchedulingUnit) -> None:
602605 start = start ,
603606 end = end ,
604607 execution_time = execution_time ,
608+ selected_models = selected_models ,
605609 )
606610
607611 self .state_sync .recycle ()
@@ -808,6 +812,7 @@ def _run_or_audit(
808812 run_environment_statements = run_environment_statements ,
809813 audit_only = audit_only ,
810814 auto_restatement_triggers = auto_restatement_triggers ,
815+ selected_models = {s .node .dbt_name for s in merged_intervals if s .node .dbt_name },
811816 )
812817
813818 return CompletionStatus .FAILURE if errors else CompletionStatus .SUCCESS
0 commit comments