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

Make data argument mandatory in run_job method #3

Open
robotajet opened this issue Jul 17, 2020 · 0 comments
Open

Make data argument mandatory in run_job method #3

robotajet opened this issue Jul 17, 2020 · 0 comments

Comments

@robotajet
Copy link

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 support@getdbt.com."}'

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant