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

vdk-core: vdk_exception hook exit code fix #915

Merged
merged 2 commits into from
Jul 26, 2022

Conversation

ivakoleva
Copy link
Contributor

In case of StandaloneDataJob, the vdk_exception hook was always
returning exit code 1, no matter if exception was successfully handled
or not. Also, in case of empty job, vdk_exception was not triggered.

Fixed the StandaloneDataJob return status to 0 in case exception was
successfully handled. Fixed the case with ClickException not propagating
to vdk_exception hook.

Testing Done: run tests locally; did verify manually that an empty job
does evaluate vdk_exception hook, and in case exception is successfully
handled then the data job exit code is 0.

Signed-off-by: ikoleva [email protected]

In case of StandaloneDataJob, the vdk_exception hook was always
returning exit code 1, no matter if exception was successfully handled
or not. Also, in case of empty job, vdk_exception was not triggered.

Fixed the StandaloneDataJob return status to 0 in case exception was
successfully handled. Fixed the case with ClickException not propagating
to vdk_exception hook.

Testing Done: run tests locally; did verify manually that an empty job
does evaluate vdk_exception hook, and in case exception is successfully
handled then the data job exit code is 0.

Signed-off-by: ikoleva <[email protected]>
@ivakoleva ivakoleva enabled auto-merge (squash) July 26, 2022 08:58
@ivakoleva ivakoleva merged commit 9ce0cb9 into main Jul 26, 2022
@ivakoleva ivakoleva deleted the person/ikoleva/vdk-exception-exit-code-fix branch July 26, 2022 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants