(record *RetryTaskRunRecord)
| 4284 | } |
| 4285 | |
| 4286 | func retryTaskRunBundle(record *RetryTaskRunRecord) outputBundle { |
| 4287 | return outputBundle{ |
| 4288 | jsonValue: record, |
| 4289 | human: func() (string, error) { |
| 4290 | return renderHumanSection("Task Run Retry", []keyValue{ |
| 4291 | {Label: "Source Run", Value: stringOrDash(record.PreviousRun.ID)}, |
| 4292 | {Label: "Source Status", Value: stringOrDash(string(record.PreviousRun.Status))}, |
| 4293 | {Label: "New Run", Value: stringOrDash(record.Run.ID)}, |
| 4294 | {Label: taskTaskValue, Value: stringOrDash(record.Run.TaskID)}, |
| 4295 | {Label: taskStatusValue, Value: stringOrDash(string(record.Run.Status))}, |
| 4296 | {Label: taskAttemptValue, Value: intOrDash(record.Run.Attempt)}, |
| 4297 | }), nil |
| 4298 | }, |
| 4299 | toon: func() (string, error) { |
| 4300 | return renderToonObject("task_run_retry", []string{ |
| 4301 | "source_run_id", |
| 4302 | "source_status", |
| 4303 | "new_run_id", |
| 4304 | taskTaskIDKey, |
| 4305 | taskStatusKey, |
| 4306 | taskAttemptKey, |
| 4307 | }, []string{ |
| 4308 | record.PreviousRun.ID, |
| 4309 | string(record.PreviousRun.Status), |
| 4310 | record.Run.ID, |
| 4311 | record.Run.TaskID, |
| 4312 | string(record.Run.Status), |
| 4313 | strconv.Itoa(record.Run.Attempt), |
| 4314 | }), nil |
| 4315 | }, |
| 4316 | } |
| 4317 | } |
| 4318 | |
| 4319 | func recoverTaskRunBundle(record *RetryTaskRunRecord) outputBundle { |
| 4320 | return outputBundle{ |
no test coverage detected