DBT Cloud Plugin for Airflow
dwallace0723 / dbt-cloud-plugin Goto Github PK
View Code? Open in Web Editor NEWDBT Cloud Plugin for Airflow
License: MIT License
DBT Cloud Plugin for Airflow
License: MIT License
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
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.