GetTaskStatus handles requests for the status of the global long-running task.
(c *gin.Context)
| 9 | |
| 10 | // GetTaskStatus handles requests for the status of the global long-running task. |
| 11 | func (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 | } |
nothing calls this directly
no test coverage detected