Enhance task status for FAILURE with error and traceback#917
Open
Amit-Matth wants to merge 3 commits into
Open
Enhance task status for FAILURE with error and traceback#917Amit-Matth wants to merge 3 commits into
Amit-Matth wants to merge 3 commits into
Conversation
668b4d1 to
d4f350e
Compare
Signed-off-by: Amit-Matth <amitmatth111@gmail.com>
d4f350e to
bf1a5f1
Compare
Member
|
@Amit-Matth, |
Signed-off-by: Amit-Matth <amitmatth111@gmail.com>
Author
|
@kairoaraujo, thanks for catching that. I initially marked this as a "New feature" because it adds diagnostic details for failures, but since it changes the status type from |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR enhances the task status reporting for
FAILUREstates. Previously, the API only returned a simple exception message. This change introduces aTaskErrormodel and updates thestatusfield to include both the error message and the full traceback.This enhancement aligns the API with the improvements in the RSTUF Worker (repository-service-tuf-worker #190) and provides better diagnostic information for developers.
Ref: repository-service-tuf/repository-service-tuf-worker#190
Closes: #249
Types of changes
Additional requirements
Code of Conduct
By submitting this PR, you agree to follow our Code of Conduct.