You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When databricks bundle run ... fails for some reason, we usually just emit a non-zero code. We should distinguish between client- and server-side errors, eg. Client.Timeout exceeded vs legit job run error.
For context: users may wrap databricks bundle commands inside scripts, and catch errors based on the return codes.
Databricks CLI v0.218.0
Darwin KWH5QPFC9G 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 arm64
Is this a regression?
No, it's not.
Debug Logs
No debug logs available. We just capture the return code from the shell.
The text was updated successfully, but these errors were encountered:
iandexter
changed the title
Feature request [DAB / CLI] : Return distinct error codes based on failure mode
Feature request [DAB / CLI] : Return distinct error codes based on failure modes
May 21, 2024
Describe the issue
When
databricks bundle run ...
fails for some reason, we usually just emit a non-zero code. We should distinguish between client- and server-side errors, eg.Client.Timeout exceeded
vs legit job run error.For context: users may wrap
databricks bundle
commands inside scripts, and catch errors based on the return codes.Configuration
Use the basic configuration described here: https://docs.databricks.com/en/workflows/jobs/how-to/use-bundles-with-jobs.html
Steps to reproduce the behavior
databricks bundle run ...
context deadline exceeded (Client.Timeout exceeded while awaiting headers)
Expected Behavior
There should be distinct, following the pattern in Bash: https://tldp.org/LDP/abs/html/exitcodes.html
Actual Behavior
The error code is just usually "1".
OS and CLI version
Is this a regression?
No, it's not.
Debug Logs
No debug logs available. We just capture the return code from the shell.
The text was updated successfully, but these errors were encountered: