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

dbt plugin won't output run_results.json when failed run #112

Open
Tracked by #4706
vitmrnavek opened this issue May 2, 2024 · 0 comments
Open
Tracked by #4706

dbt plugin won't output run_results.json when failed run #112

vitmrnavek opened this issue May 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@vitmrnavek
Copy link

Describe the issue

I'm using plugin io.kestra.plugin.dbt.cli.DbtCLI in task and I'd like to have run_results.json in outputFiles so I can parse it later.

When task is successful, run_results are present in outputFiles. However, when task fails run_results are missing in outputFiles even when i use outputFiles variable, example below


      - id: dbtCore
        outputFiles: ["target/run_results.json"]
        type: io.kestra.plugin.dbt.cli.DbtCLI
        docker:
          image: ghcr.io/dbt-labs/dbt-snowflake:1.7.1
        commands:
          - dbt deps
          - dbt {{inputs.dbt_command}} --target {{inputs.dbt_target}} {% if inputs.selector is defined %} -s "{{ inputs.selector }}" {% endif %} {% if inputs.exclude is defined %} --exclude "{{ inputs.exclude }}" {% endif %}

Environment

  • Kestra Version: 0.16.1
  • Operating System (OS/Docker/Kubernetes): Kubernetes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

4 participants