Skip to content

enhancement: Add more details when sub-task fails #249

@kairoaraujo

Description

@kairoaraujo

What do you want to share with us?

The current API shows the task status.
When a task has the status FAILURE, the status is quite simple. It is a string with the exception message from the task.

The proposal for this issue is an enhancement in case of status FAILURE
The suggestion is

"status": {
    "error": "string with the error message/exception",
    "traceback": "The failure traceback, it can help developers and use troubleshooting in details"
} 

This will improve the existent implementation on the RSTUF Worker repository-service-tuf/repository-service-tuf-worker#190

References

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions