Skip to content

Commit

Permalink
gateway: add api to get log status
Browse files Browse the repository at this point in the history
  • Loading branch information
camandel committed Nov 13, 2019
1 parent 24a9563 commit 63a417b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/services/gateway/api/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ func createRunTaskResponse(rt *rstypes.RunTask, rct *rstypes.RunConfigTask) *gwa

s.ExitStatus = rts.ExitStatus

if rts.LogPhase == rstypes.RunTaskFetchPhaseFinished {
s.LogArchived = true
}
case *rstypes.SaveToWorkspaceStep:
s.Type = "save_to_workspace"
s.Name = "save to workspace"
Expand Down
2 changes: 2 additions & 0 deletions services/gateway/api/types/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ type RunTaskResponseStep struct {

StartTime *time.Time `json:"start_time"`
EndTime *time.Time `json:"end_time"`

LogArchived bool `json:"log_archived"`
}

type RunActionType string
Expand Down

0 comments on commit 63a417b

Please sign in to comment.