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

Allow downloading of dbt Cloud artifacts to non-existent paths #29048

Merged
merged 1 commit into from
Jan 23, 2023

Conversation

josh-fell
Copy link
Contributor

Closes: #27107

Currently the DbtCloudGetJobRunArtifactOperator does not support downloading dbt Cloud job run artifacts to non-existent local paths. This means users couldn't specify a dynamic file path to which to download the artifact.

This PR will enhance the DbtCloudGetJobRunArtifactOperator to create these non-existent paths when necessary.

A little bonus of updated test coverage and pushing the task's output_file_name to XCom (which may be useful to then read said artifact).


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@potiuk
Copy link
Member

potiuk commented Jan 21, 2023

Random failures. Nice addition and nice improvements in tests. Merging (Approving and re-running left to Josh to merge as appropriate :) ).

Closes: apache#27107

Currently the DbtCloudGetJobRunArtifactOperator does not support downloading dbt Cloud job run artifacts to non-existent local paths. This means users couldn't specify a dynamic file path to which to download the artifact.

This PR will enhance the DbtCloudGetJobRunArtifactOperator to create these non-existent paths when necessary.
@josh-fell
Copy link
Contributor Author

Rebased and resolved conflicts.

@josh-fell josh-fell merged commit f805b41 into apache:main Jan 23, 2023
@josh-fell josh-fell deleted the dbt-cloud-job-artifact branch January 23, 2023 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dbt cloud download artifact to a path not present fails
2 participants