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

fix for error-ed out transactions on redshift #1356

Merged
merged 1 commit into from
Mar 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions core/dbt/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,14 @@ def _build_source_snapshot_freshness_subparser(subparsers, base_subparser):
target/sources.json
"""
)
sub.add_argument(
'--threads',
type=int,
required=False,
help="""
Specify number of threads to use. Overrides settings in profiles.yml
"""
)
sub.set_defaults(cls=freshness_task.FreshnessTask,
which='snapshot-freshness')
return sub
Expand Down
1 change: 1 addition & 0 deletions core/dbt/node_runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ def from_run_result(self, result, start_time, timing_info):
def execute(self, compiled_node, manifest):
relation = self.adapter.Relation.create_from_source(compiled_node)
# given a Source, calculate its fresnhess.
self.adapter.clear_transaction(compiled_node.unique_id)
freshness = self.adapter.calculate_freshness(
relation,
compiled_node.loaded_at_field,
Expand Down