MCPcopy Create free account
hub / github.com/tbphp/gpt-load / GetTaskStatus

Method GetTaskStatus

internal/handler/task_handler.go:11–18  ·  view source on GitHub ↗

GetTaskStatus handles requests for the status of the global long-running task.

(c *gin.Context)

Source from the content-addressed store, hash-verified

9
10// GetTaskStatus handles requests for the status of the global long-running task.
11func (s *Server) GetTaskStatus(c *gin.Context) {
12 taskStatus, err := s.TaskService.GetTaskStatus()
13 if err != nil {
14 response.ErrorI18nFromAPIError(c, app_errors.ErrInternalServer, "task.get_status_failed")
15 return
16 }
17 response.Success(c, taskStatus)
18}

Callers

nothing calls this directly

Calls 2

ErrorI18nFromAPIErrorFunction · 0.92
SuccessFunction · 0.92

Tested by

no test coverage detected