Forum Discussion

jk-dbt's avatar
jk-dbt
New Member
2 years ago
Solved

DBT Orchestration

Hi,

I have a question on dbt orchestration.

 

I'm not sure how I can trigger a production dbt run in a Fabric pipeline and hoping someone in the community had a suggestion.

The dbt-fabric adaptor is working perfectly.  The config is good and I can target dev and prod with a manual dbt run with no issues.

 

However, I would like to have run without me having to be at desk pressing go every morning.  Does Fabric have a way to pull the from the repo and trigger on a schedule?

 

Thanks a mil.

9 Replies

  • AndyDDC's avatar
    AndyDDC
    Most Valuable Professional

    Hi jk-dbt just a quick question: where are you running dbt core, is it on your desktop PC, or on a VM etc?

    • jk-dbt's avatar
      jk-dbt
      New Member

      Hey AndyDDC .  Appreciate you coming back on this.  I'm developing on my local machine.

      The basic workflow I'd like to have if possible would be like: 

      • Analytics engineers develop on their local machine.
      • Push to github.
      • scheduled Fabric pipeline somehow clones the repo.
      • Fabric somehow does a dbt run
      • Alert messages get emailed ….

      One idea I’ve seen floating around is to have a notebook do the lat 3 steps above.  I actually pip installed dbt in the notebook, got all excited but then got stuck trying to clone the repo.

      • AndyDDC's avatar
        AndyDDC
        Most Valuable Professional

        OK thanks.  At the moment you need to run dbt core (and therefore dbt run) on some non-fabric compute unfortunately, like a VM.  

  • Hi dears

     

    Do you know ,how can we call a DBT cloud job ( for a project ) on a Microsoft

      Fabric datafactory pipeline tasks ? 

     

    Via call to dbt cloud Api ?

     

    WE would like Fabric datafactory pipelines to be full chain orchestrator 

  • sanetaboada's avatar
    sanetaboada
    Regular Visitor

    If you need an "all fabric" solution, I think the option there would be to use Fabic Data Factory's Data Workflows (Apache Airflow behind the hood). I.e. configure Data Workflow to point to a git repo where your dbt code is, and let it orchestrate your dbt jobs. This will involve learning Apache Airflow though.

     

    I'm gearing towards that path since my team's skills are mostly dbt and I wanted to build a solution under the promise of Microsoft Fabric's "complete end-to-end data platform" without having to provision VM's, external integrations, etc.

     

    But beware though, Data Factory Data Workflow is still in preview and is poorly documented. Until now I'm still scratching my head on how to make it work! 😅

    • Joshrodgers123's avatar
      Joshrodgers123
      Advocate V

      There's a DBT core pipeline activity that is on the release plan for this quarter. Supposedly you can store your project in the files section of a lakehouse and it will run it for you. I have heard storing it in GitHub/DevOps will be supported later.

       

      If you're on DBT cloud, you can trigger it by calling the job API from a pipeline using a web activity.