MCPcopy Create free account
hub / github.com/compozy/agh / taskInspectRunSectionRows

Function taskInspectRunSectionRows

internal/cli/task.go:3867–3882  ·  view source on GitHub ↗
(run *contract.TaskInspectRunPayload)

Source from the content-addressed store, hash-verified

3865}
3866
3867func taskInspectRunSectionRows(run *contract.TaskInspectRunPayload) []keyValue {
3868 return []keyValue{
3869 {Label: taskRunValue, Value: stringOrDash(run.RunID)},
3870 {Label: taskTaskValue, Value: stringOrDash(run.TaskID)},
3871 {Label: taskStatusValue, Value: stringOrDash(string(run.Status))},
3872 {Label: taskAttemptValue, Value: intOrDash(run.Attempt)},
3873 {Label: taskSessionValue, Value: stringOrDash(run.BoundSessionID)},
3874 {Label: "Claim Hash", Value: stringOrDash(run.ClaimTokenHashTruncated)},
3875 {Label: "Lease Until", Value: stringOrDash(formatTimePtr(run.LeaseUntil))},
3876 {
3877 Label: "Heartbeat Age",
3878 Value: stringOrDash(taskInspectHeartbeatAge(run.HeartbeatAgeSeconds)),
3879 },
3880 {Label: taskErrorValue, Value: stringOrDash(run.LastErrorSummary)},
3881 }
3882}
3883
3884func taskInspectSessionRows(session *contract.TaskInspectSessionPayload) []keyValue {
3885 return []keyValue{

Callers 1

renderTaskInspectHumanFunction · 0.85

Calls 4

stringOrDashFunction · 0.85
intOrDashFunction · 0.85
formatTimePtrFunction · 0.85
taskInspectHeartbeatAgeFunction · 0.85

Tested by

no test coverage detected