Skip to content

Improve validation of jobs that run a SQL query#1

Open
lempiraholio wants to merge 1 commit intochristyharagan:masterfrom
lempiraholio:patch-1
Open

Improve validation of jobs that run a SQL query#1
lempiraholio wants to merge 1 commit intochristyharagan:masterfrom
lempiraholio:patch-1

Conversation

@lempiraholio
Copy link
Copy Markdown

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