@@ -980,11 +980,11 @@ func GetTaskDirectly(c echo.Context) error {
980980// @Param wfId path string true "ID of the workflow."
981981// @Param wfRunId path string true "ID of the workflowRunId."
982982// @Param taskId path string true "ID of the task."
983- // @Param taskTyNum path string true "ID of the taskTryNum."
983+ // @Param taskTryNum path string true "ID of the taskTryNum."
984984// @Success 200 {object} airflow.InlineResponse200 "Successfully get the task Logs."
985985// @Failure 400 {object} common.ErrorResponse "Sent bad request."
986986// @Failure 500 {object} common.ErrorResponse "Failed to get the task Logs."
987- // @Router /workflow/{wfId}/workflowRun/{wfRunId}/task/{taskId}/taskTryNum/{taskTyNum }/logs [get]
987+ // @Router /workflow/{wfId}/workflowRun/{wfRunId}/task/{taskId}/taskTryNum/{taskTryNum }/logs [get]
988988func GetTaskLogs (c echo.Context ) error {
989989 wfId := c .Param ("wfId" )
990990 if wfId == "" {
@@ -1004,19 +1004,19 @@ func GetTaskLogs(c echo.Context) error {
10041004 return common .ReturnErrorMsg (c , "Invalid get tasK from taskId." )
10051005 }
10061006
1007- taskTyNum := c .Param ("taskTyNum " )
1008- if taskTyNum == "" {
1009- return common .ReturnErrorMsg (c , "Please provide the taskTyNum ." )
1007+ taskTryNum := c .Param ("taskTryNum " )
1008+ if taskTryNum == "" {
1009+ return common .ReturnErrorMsg (c , "Please provide the taskTryNum ." )
10101010 }
1011- taskTyNumToInt , err := strconv .Atoi (taskTyNum )
1011+ taskTryNumToInt , err := strconv .Atoi (taskTryNum )
10121012 if err != nil {
10131013 return common .ReturnErrorMsg (c , "Invalid taskTryNum format." )
10141014 }
10151015 client , err := airflow .GetClient ()
10161016 if err != nil {
10171017 return common .ReturnErrorMsg (c , err .Error ())
10181018 }
1019- logs , err := client .GetTaskLogs (wfId , common .UrlDecode (wfRunId ), taskInfo .Name , taskTyNumToInt )
1019+ logs , err := client .GetTaskLogs (wfId , common .UrlDecode (wfRunId ), taskInfo .Name , taskTryNumToInt )
10201020 if err != nil {
10211021 return common .ReturnErrorMsg (c , "Failed to get the workflow logs: " + err .Error ())
10221022 }
@@ -1460,11 +1460,11 @@ func GetWorkflowVersion(c echo.Context) error {
14601460// @Param wfId path string true "ID of the workflow."
14611461// @Param wfRunId path string true "ID of the workflowRunId."
14621462// @Param taskId path string true "ID of the task."
1463- // @Param taskTyNum path string true "ID of the taskTryNum."
1463+ // @Param taskTryNum path string true "ID of the taskTryNum."
14641464// @Success 200 {file} file "Log file downloaded successfully."
14651465// @Failure 400 {object} common.ErrorResponse "Sent bad request."
14661466// @Failure 500 {object} common.ErrorResponse "Failed to get the task Logs."
1467- // @Router /workflow/{wfId}/workflowRun/{wfRunId}/task/{taskId}/taskTryNum/{taskTyNum }/logs/download [get]
1467+ // @Router /workflow/{wfId}/workflowRun/{wfRunId}/task/{taskId}/taskTryNum/{taskTryNum }/logs/download [get]
14681468func GetTaskLogDownload (c echo.Context ) error {
14691469 wfId := c .Param ("wfId" )
14701470 if wfId == "" {
@@ -1484,19 +1484,19 @@ func GetTaskLogDownload(c echo.Context) error {
14841484 return common .ReturnErrorMsg (c , "Invalid get tasK from taskId." )
14851485 }
14861486
1487- taskTyNum := c .Param ("taskTyNum " )
1488- if taskTyNum == "" {
1489- return common .ReturnErrorMsg (c , "Please provide the taskTyNum ." )
1487+ taskTryNum := c .Param ("taskTryNum " )
1488+ if taskTryNum == "" {
1489+ return common .ReturnErrorMsg (c , "Please provide the taskTryNum ." )
14901490 }
1491- taskTyNumToInt , err := strconv .Atoi (taskTyNum )
1491+ taskTryNumToInt , err := strconv .Atoi (taskTryNum )
14921492 if err != nil {
14931493 return common .ReturnErrorMsg (c , "Invalid taskTryNum format." )
14941494 }
14951495 client , err := airflow .GetClient ()
14961496 if err != nil {
14971497 return common .ReturnErrorMsg (c , err .Error ())
14981498 }
1499- logs , err := client .GetTaskLogs (wfId , common .UrlDecode (wfRunId ), taskInfo .Name , taskTyNumToInt )
1499+ logs , err := client .GetTaskLogs (wfId , common .UrlDecode (wfRunId ), taskInfo .Name , taskTryNumToInt )
15001500 if err != nil {
15011501 return common .ReturnErrorMsg (c , "Failed to get the workflow logs: " + err .Error ())
15021502 }
0 commit comments