Skip to content

Make data argument mandatory in run_job method #3

@robotajet

Description

@robotajet

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions