Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 9d4d747

Browse files
committed
add TRIGGERED_BY env variable support
1 parent 765cfaf commit 9d4d747

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

data_diff/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"-": "red",
3434
}
3535

36-
set_entrypoint_name("CLI")
36+
set_entrypoint_name(os.getenv("TRIGGERED_BY", "CLI"))
3737

3838

3939
def _get_log_handlers(is_dbt: Optional[bool] = False) -> Dict[str, logging.Handler]:

data_diff/dbt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def dbt_diff(
7474
) -> None:
7575
print_version_info()
7676
diff_threads = []
77-
set_entrypoint_name("CLI-dbt")
77+
set_entrypoint_name(os.getenv("TRIGGERED_BY", "CLI-dbt"))
7878
dbt_parser = DbtParser(profiles_dir_override, project_dir_override, state)
7979
models = dbt_parser.get_models(dbt_selection)
8080
config = dbt_parser.get_datadiff_config()

0 commit comments

Comments
 (0)