Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always write run_results.json #7539

Merged
merged 12 commits into from
May 9, 2023
Prev Previous commit
Next Next commit
better class attrs
iknox-fa committed May 6, 2023
commit aaa5599ebcbace90fd1b6fc0c40b754ce1d74722
13 changes: 7 additions & 6 deletions core/dbt/task/runnable.py
Original file line number Diff line number Diff line change
@@ -65,15 +65,16 @@ class GraphRunnableTask(ConfiguredTask):

def __init__(self, args, config, manifest):
super().__init__(args, config, manifest)
self.job_queue: Optional[GraphQueue] = None
self._flattened_nodes: Optional[List[ResultNode]] = None

self.run_count: int = 0
self.num_nodes: int = 0
self.node_results = []
self._skipped_children = {}
self._raise_next_tick = None
self._skipped_children = {}
self.job_queue: Optional[GraphQueue] = None
self.node_results = []
self.num_nodes: int = 0
self.previous_state: Optional[PreviousState] = None
self.run_count: int = 0
self.started: float = 0
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self.started is the only new value here. The rest of the changes are just sorting things for readability.

stu-k marked this conversation as resolved.
Show resolved Hide resolved

self.set_previous_state()

def set_previous_state(self):