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

Create artifact for unsuccessful dbt task runs #13348

Merged
merged 5 commits into from
May 14, 2024
Merged

Create artifact for unsuccessful dbt task runs #13348

merged 5 commits into from
May 14, 2024

Conversation

seanpwlms
Copy link
Contributor

This PR adds an artifact that provides more information for unsuccessful dbt tasks.

Example

@flow
def dbt_flow():
    run_dbt_model(
        project_dir="/Users/test/prefect_dbt_project"
        create_unsuccessful_artifact = True
        create_summary_artifact = True
    )

if __name__ == "__main__":
    dbt_flow()

Checklist

  • This pull request references any related issue by including "closes <link to issue>"
    • If no issue exists and your change is not a small fix, please create an issue first.
  • If this pull request adds new functionality, it includes unit tests that cover the changes
  • This pull request includes a label categorizing the change e.g. maintenance, fix, feature, enhancement, docs.

For documentation changes:

  • This pull request includes redirect settings in netlify.toml for files that are removed or renamed.

For new functions or classes in the Python SDK:

  • This pull request includes helpful docstrings.
  • If a new Python file was added, this pull request contains a stub page in the Python SDK docs and an entry in mkdocs.yml navigation.

@seanpwlms seanpwlms added enhancement An improvement of an existing feature integrations Related to integrations with other services labels May 14, 2024
@seanpwlms seanpwlms requested a review from robfreedy May 14, 2024 21:41
Copy link
Contributor

@zzstoatzz zzstoatzz left a comment

Choose a reason for hiding this comment

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

a couple small comments on typing but this is looking good to me!

@seanpwlms seanpwlms requested a review from zzstoatzz May 14, 2024 22:51
@seanpwlms seanpwlms merged commit b17f049 into main May 14, 2024
13 checks passed
@seanpwlms seanpwlms deleted the dbt-artifacts branch May 14, 2024 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement of an existing feature integrations Related to integrations with other services
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants