From 3104b2bf29884c30e1bafcd78bea63f5ab0de3df Mon Sep 17 00:00:00 2001 From: Leo Schick Date: Mon, 8 Apr 2024 20:05:40 +0200 Subject: [PATCH] typo --- .changes/unreleased/Features-20231107-132842.yaml | 2 +- core/dbt/cli/main.py | 8 ++++---- core/dbt/cli/params.py | 6 +++--- core/dbt/flags.py | 2 +- core/dbt/task/runnable.py | 4 ++-- core/dbt/utils.py | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.changes/unreleased/Features-20231107-132842.yaml b/.changes/unreleased/Features-20231107-132842.yaml index a29049457e4..d048f8a5c02 100644 --- a/.changes/unreleased/Features-20231107-132842.yaml +++ b/.changes/unreleased/Features-20231107-132842.yaml @@ -1,5 +1,5 @@ kind: Features -body: add flag --no-skip-on-failture +body: add flag --no-skip-on-failure time: 2023-11-07T13:28:42.420727773+01:00 custom: Author: leo-schick diff --git a/core/dbt/cli/main.py b/core/dbt/cli/main.py index f6608896cd6..59e03904e8d 100644 --- a/core/dbt/cli/main.py +++ b/core/dbt/cli/main.py @@ -189,7 +189,7 @@ def cli(ctx, **kwargs): @p.exclude @p.full_refresh @p.include_saved_query -@p.no_skip_on_failture +@p.no_skip_on_failure @p.profile @p.profiles_dir @p.project_dir @@ -558,7 +558,7 @@ def parse(ctx, **kwargs): @global_flags @p.exclude @p.full_refresh -@p.no_skip_on_failture +@p.no_skip_on_failure @p.profile @p.profiles_dir @p.project_dir @@ -595,7 +595,7 @@ def run(ctx, **kwargs): @p.project_dir @p.profiles_dir @p.vars -@p.no_skip_on_failture +@p.no_skip_on_failure @p.profile @p.target @p.threads @@ -691,7 +691,7 @@ def run_operation(ctx, **kwargs): @global_flags @p.exclude @p.full_refresh -@p.no_skip_on_failture +@p.no_skip_on_failure @p.profile @p.profiles_dir @p.project_dir diff --git a/core/dbt/cli/params.py b/core/dbt/cli/params.py index 79aa79c86fd..bdf797e494d 100644 --- a/core/dbt/cli/params.py +++ b/core/dbt/cli/params.py @@ -112,9 +112,9 @@ help="Stop execution on first failure.", ) -no_skip_on_failture = click.option( - "--no-skip-on-failture", - envvar="DBT_NO_SKIP_ON_FAILTURE", +no_skip_on_failure = click.option( + "--no-skip-on-failure", + envvar="DBT_NO_SKIP_ON_FAILURE", help="Proceed with downstream nodes even if an upstream node fails.", is_flag=True, ) diff --git a/core/dbt/flags.py b/core/dbt/flags.py index 8528701eec4..1efd468e0b9 100644 --- a/core/dbt/flags.py +++ b/core/dbt/flags.py @@ -75,7 +75,7 @@ def get_flag_dict(): "log_format", "version_check", "fail_fast", - "no_skip_on_failture", + "no_skip_on_failure", "send_anonymous_usage_stats", "printer_width", "indirect_selection", diff --git a/core/dbt/task/runnable.py b/core/dbt/task/runnable.py index dc8d137bc63..be43a5a69bb 100644 --- a/core/dbt/task/runnable.py +++ b/core/dbt/task/runnable.py @@ -419,8 +419,8 @@ def _mark_dependent_errors( ) -> None: if self.graph is None: raise DbtInternalError("graph is None in _mark_dependent_errors") - no_skip_on_failture = get_flags().NO_SKIP_ON_FAILTURE - if not no_skip_on_failture: + no_skip_on_failure = get_flags().NO_SKIP_ON_FAILURE + if not no_skip_on_failure: for dep_node_id in self.graph.get_dependent_nodes(UniqueId(node_id)): self._skipped_children[dep_node_id] = cause diff --git a/core/dbt/utils.py b/core/dbt/utils.py index ac57c1ea0bf..20928f9eac8 100644 --- a/core/dbt/utils.py +++ b/core/dbt/utils.py @@ -350,7 +350,7 @@ def args_to_dict(args): "debug", "full_refresh", "fail_fast", - "no_skip_on_failture", + "no_skip_on_failure", "warn_error", "single_threaded", "log_cache_events",