-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Bug] Exit codes do not match documentation #4479
Comments
Hi @moltar thanks for reaching out with your question. I believe that this sort of error is considered "handled" in that We can certainly make the documentation more clear-- to better understand how our users utilize exit codes, can you explain how the exit codes effect your use case as it seems that all potential outcomes are programmatically available? |
We are orchestrating dbt via step functions, and I wanted to instruct a step function to retry the operation if an exit code matched a pattern. |
@moltar That's useful context! A few quick thoughts from me: If dbt encounters a handled error (exit code That's all at the level of the invocation. We've also been discussing (#3303) better handling at the node/query level for transient/intermittent errors, such as |
@jtcohen6 thank you for providing this excellent summary!
Our problem is that we are triggering dbt job via Step Function and monitoring SFN, and retrying inside SFN, which does not have access to the result file. There are workarounds we can do, ofc, since we are storing artifacts, so we can just read it in another step and try to figure out what caused the error. But I thought going by the exit code would be the easiest as this info is already exposed to the SFN execution context and can be used in the step definitions.
THis might actually be what we need!! We can look for 2 and then retry more, if this is the case, or fail if it's something else. |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days. |
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest; add a comment to notify the maintainers. |
Is there an existing issue for this?
Current Behavior
Expected Behavior
As documented: https://docs.getdbt.com/reference/exit-codes
Steps To Reproduce
No response
Relevant log output
Environment
What database are you using dbt with?
postgres
Additional Context
The text was updated successfully, but these errors were encountered: