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

Feature request: dbt cloud runner #586

Open
adrianbr opened this issue Aug 25, 2023 · 2 comments
Open

Feature request: dbt cloud runner #586

adrianbr opened this issue Aug 25, 2023 · 2 comments

Comments

@adrianbr
Copy link
Contributor

We want to equally support dbt core and cloud. To offer cloud support, we need to create some kind of operator for this api

https://docs.getdbt.com/dbt-cloud/api-v3#/

The operator should have the following options:

  • wait for outcome toggle - we can kick off a model run but we can also wait until it's finished - or not, depending on what user wants.
@jtcohen6
Copy link

@adrianbr I recommend using v2 of the dbt Cloud admin API, as it's more standard for this type of integration.

Assuming the user has already defined a job, possibly with steps like dbt build --select source:my_source_loaded_via_dlt+ — they would then need to provide your integration with:

  • account ID
  • project ID
  • job ID
  • API key (service token) with "Job Admin" permission for the relevant account/project

After kicking off, you can either poll for job status, or get a webhook on completion: https://docs.getdbt.com/docs/deploy/webhooks

Check out a similar example in the documentation, for triggering a dbt Cloud job via GHA:

@rudolfix
Copy link
Collaborator

rudolfix commented Sep 1, 2023

@jtcohen6 thx for the hint, this looks way easier than running dbt locally (no need to install deps, refresh the project, run commands etc.)

there are a few things on top of running jobs that I'd like to try:

I'll OFC dig deeper into the API but maybe you just know the answers :)

@rudolfix rudolfix moved this from Todo to Planned in dlt core library Sep 1, 2023
@rudolfix rudolfix moved this from Planned to Todo in dlt core library Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

3 participants