diff --git a/services/tasks/http.go b/services/tasks/http.go index 8a65131e7..0f2a862f4 100644 --- a/services/tasks/http.go +++ b/services/tasks/http.go @@ -81,6 +81,11 @@ func (r *httpRoutes) runTask(ctx echo.Context) error { r.logger.Error("failed to set params", zap.Error(err)) return echo.NewHTTPError(http.StatusInternalServerError, "failed to set params") } + err = run.Result.Set([]byte("")) + if err != nil { + r.logger.Error("failed to set results", zap.Error(err)) + return echo.NewHTTPError(http.StatusInternalServerError, "failed to set results") + } if err := r.db.CreateTaskRun(&run); err != nil { r.logger.Error("failed to create task run", zap.Error(err))