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-dag: improve error handling and error messages #3152

Merged
merged 3 commits into from
Feb 27, 2024

Conversation

antoniivanov
Copy link
Collaborator

@antoniivanov antoniivanov commented Feb 21, 2024

To make it easier to debug VDK DAG jobs some improvements in error handling are done.

  • Stop using deprecated UserCodeError in favour of domain oriented exceptoin class
  • Improve the formatting of the error message in case of failure.
  • Renamed DAG_LOCAL_RUN_JOB_PATH to DAGS_LOCAL_RUN_JOB_PATH to bring it inline with other configuration options like here. Eventually we should expose it the same way but not in this PR.

Testing Done: existing tests for regression.
Here is a comparison before and now in the formatting: https://gist.githubusercontent.com/antoniivanov/8f87cdef1c610fcd24361197bcba45dc/raw/c31b990de2c0b1f49ac5989419cfc6ab12aac934/gistfile1.txt

Copy link
Collaborator

@duyguHsnHsn duyguHsnHsn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks much cleaner now! Nice

antoniivanov and others added 3 commits February 25, 2024 23:34
To make it easier to debug VDK DAG jobs some improvements in error
handling are done.
- Stop using deprecated UserCodeError in favour of domain oriented
exceptoin class
- Improve the formatting of the error message in case of failure.

Testing Done: existing tests for regression.
Here is a comparison before and now in the formatting:
https://gist.githubusercontent.com/antoniivanov/8f87cdef1c610fcd24361197bcba45dc/raw/c31b990de2c0b1f49ac5989419cfc6ab12aac934/gistfile1.txt
To make it easier to debug VDK DAG jobs some improvements in error
handling are done.
- Stop using deprecated UserCodeError in favour of domain oriented
exceptoin class
- Improve the formatting of the error message in case of failure.

Testing Done: existing tests for regression.
Here is a comparison before and now in the formatting:
https://gist.githubusercontent.com/antoniivanov/8f87cdef1c610fcd24361197bcba45dc/raw/c31b990de2c0b1f49ac5989419cfc6ab12aac934/gistfile1.txt
@antoniivanov antoniivanov merged commit 893ffb7 into main Feb 27, 2024
8 checks passed
@antoniivanov antoniivanov deleted the person/aivanov/vdk-dag branch February 27, 2024 11:36
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.

4 participants