Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusCreated = "Created" StatusProcessing = "Processing" StatusCompleted = "Completed" StatusFailed = "Failed" // Added for handling failure cases )
Task statuses
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TrainManager ¶
type TrainManager struct {
// contains filtered or unexported fields
}
TrainManager manages tasks.
func NewTrainManager ¶
func NewTrainManager() *TrainManager
NewTrainManager initializes a new TrainManager
func (*TrainManager) CreateTask ¶
func (tm *TrainManager) CreateTask(ctx context.Context, dataPath, trainingDataPath string) (string, error)
CreateTask creates a new task and returns its ID
func (*TrainManager) GetTaskStatus ¶
GetTaskStatus retrieves the status of a task by its ID
Click to show internal directories.
Click to hide internal directories.