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

exit codes should be significant #297

Closed
drewbanin opened this issue Feb 25, 2017 · 3 comments
Closed

exit codes should be significant #297

drewbanin opened this issue Feb 25, 2017 · 3 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@drewbanin
Copy link
Contributor

drewbanin commented Feb 25, 2017

if "errors" occur, dbt should exit with a non-zero exit code.

Exit codes:
0: completed without error
1: completed with handled error (eg. model syntax error, bad permissions, etc)
2: completed with unhandled error
@drewbanin drewbanin added the enhancement New feature or request label Feb 25, 2017
@drewbanin drewbanin self-assigned this Feb 25, 2017
@igrayson
Copy link
Contributor

This is our preferred way to detect when our dbt models are failing.

Today we run regular tasks like dbt as cron jobs, and wrap them in a script to send metrics on duration/exit code for monitoring.

@adamhaney
Copy link

That would be perfect, we've started to run dbt with airflow and it would be awesome to be able to have calling scripts know if the command succeeded or not.

@adamhaney
Copy link

One more thing, it's not quite clear if there are specific complexities for each command (compile, test, clean, etc). The main ones that introduce hurdles for my team specifically are dbt run and dbt test not returning error codes. We'd really like to be able to run and test in an automated way and respond/notify on failure.

@drewbanin drewbanin mentioned this issue Jun 19, 2017
6 tasks
@drewbanin drewbanin modified the milestone: 0.8.3 Jun 20, 2017
@drewbanin drewbanin assigned drewbanin and unassigned drewbanin Jul 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants