lablup / lablup/backend.ai

Introduce error code to `BgtaskFailedEvent`, `BgtaskPartialSuccess`

Open
#5,810 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
15h 13m
Merged PRs (30d)
368

Description

## Motivation

As a client tracking `bgtask`, receiving only a list of error messages makes it impossible to handle different error types differently.
Let's introduce error codes into the `bgtask` result as well.

JIRA Issue: BA-2317

Contributor guide

Open the contributing guide

Research direction

Start by locating the definitions and producers of BgtaskFailedEvent and BgtaskPartialSuccess, then trace how bgtask results are returned to clients. Define the error-code representation and update the result behavior so clients receive codes alongside error messages; done means both event types expose the new codes consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.