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

Improve validation of jobs that run a SQL query #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

james-neutron
Copy link

The status of a job that is not RUNNING is not necessarily a failed job. According to the API reference a job can have a status that is not FAILED (or CANCELLED) that do not throw an error message. The current validation of the status of the job only checks if the job is not in RUNNING nor it is a COMPLETED job and throws and error if so, but if for some reason the job is in PENDING or any other status that doesn't represent a failed job it will throw an error with an empty message.

The status of a job that is not `RUNNING` is not necessarily a failed job. (According to the API reference)[https://docs.dremio.com/rest-api/jobs/get-job.html#jobstatus-response-output] a job can have several status that are not `FAILED` (or `CANCELLED`) that do not throw an error message. The current validation of the status of the job only checks if the job is not in `RUNNING` nor it is a `COMPLETED` job and throws and error if so, but if for some reason the job is in `PENDING` or any other status that doesn't represent a failed job it will throw an error with an empty message.
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

Successfully merging this pull request may close these issues.

1 participant