diff --git a/CHANGELOG.md b/CHANGELOG.md index 361dac6588e..76076a9ac92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,12 +2,14 @@ ### Fixes - Fix compiled sql for ephemeral models ([#3317](https://github.com/fishtown-analytics/dbt/issues/3317), [#3318](https://github.com/fishtown-analytics/dbt/pull/3318)) +- Now generating `run_results.json` even when no nodes are selected ([#3313](https://github.com/fishtown-analytics/dbt/issues/3313), [#3315](https://github.com/fishtown-analytics/dbt/pull/3315)) ### Under the hood -- Added logic for registry requests to raise a timeout error after a response hangs out for 30 seconds and 5 attempts have been made to reach the endpoint ([#3117](https://github.com/fishtown-analytics/dbt/issues/3177)) +- Added logic for registry requests to raise a timeout error after a response hangs out for 30 seconds and 5 attempts have been made to reach the endpoint ([#3177](https://github.com/fishtown-analytics/dbt/issues/3177), [#3275](https://github.com/fishtown-analytics/dbt/pull/3275)) Contributors: -- [@TeddyCr](https://github.com/TeddyCr) ([#3117](https://github.com/fishtown-analytics/dbt/issues/3177)) +- [@TeddyCr](https://github.com/TeddyCr) ([#3275](https://github.com/fishtown-analytics/dbt/pull/3275)) +- [@panasenco](https://github.com/panasenco) ([#3315](https://github.com/fishtown-analytics/dbt/pull/3315)) ## dbt 0.20.0b1 (May 03, 2021) diff --git a/core/dbt/task/runnable.py b/core/dbt/task/runnable.py index cfe46571347..98af7546c87 100644 --- a/core/dbt/task/runnable.py +++ b/core/dbt/task/runnable.py @@ -413,7 +413,7 @@ def run(self): if len(self._flattened_nodes) == 0: logger.warning("WARNING: Nothing to do. Try checking your model " "configs and model specification args") - return self.get_result( + result = self.get_result( results=[], generated_at=datetime.utcnow(), elapsed_time=0.0, @@ -421,9 +421,8 @@ def run(self): else: with TextOnly(): logger.info("") - - selected_uids = frozenset(n.unique_id for n in self._flattened_nodes) - result = self.execute_with_hooks(selected_uids) + selected_uids = frozenset(n.unique_id for n in self._flattened_nodes) + result = self.execute_with_hooks(selected_uids) if flags.WRITE_JSON: self.write_manifest()