Coder Social home page Coder Social logo

dbt-cloud-plugin's Introduction

dbt-cloud-plugin

DBT Cloud Plugin for Airflow

dbt-cloud-plugin's People

Contributors

dwallace0723 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dbt-cloud-plugin's Issues

ERROR - No module named 'dbt_cloud_plugin.sensors.dbt_cloud_run_sensor'

Hello @dwallace0723 thanks a lot for the plugin.

When I imported the plugin and I retarted the Airflow Scheduler/Webserver, I got:

"ERROR - No module named 'dbt_cloud_plugin.sensors.dbt_cloud_run_sensor'"

The issue was in the name of the file for sensor plugin into "init.py" file. Line 4.

from dbt_cloud_plugin.sensors.dbt_cloud_run_sensor import DbtCloudRunSensor

And the name of the file is: github.com/dwallace0723/dbt-cloud-plugin/blob/master/dbt_cloud_plugin/sensors/dbt_cloud_job_sensor.py

So, I had to change this line to:

dbt_cloud_run_sensor to dbt_cloud_job_sensor

from dbt_cloud_plugin.sensors.dbt_cloud_job_sensor import DbtCloudRunSensor

After this fix it worked.

Maybe this change could be add to the code. It would be more beginner-friendly

Make data argument mandatory in run_job method

Hey, @dwallace0723 thanks very much for the plugin ๐Ÿ™ .

I guess it serves me well for not reading the API documentation thoroughly before trying to use the API
API docs

I got a little hung up by this when I forgot to pass a trigger value to the run_job method.

db = DbtCloud(id,token)
db.run_job('job_name')
{"detail":"There was a server error. Please contact support at [email protected]."}'

This is the error message the API gives back

db.run_job('job_name',data={'cause':'trigger'})

^ This works

Do you think we could make the data argument mandatory - It would be more beginner-friendly

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.