(taskRecord taskpkg.Task)
| 853 | } |
| 854 | |
| 855 | func taskSessionAgentName(taskRecord taskpkg.Task) string { |
| 856 | if taskRecord.Owner == nil || taskRecord.Owner.IsZero() { |
| 857 | return "" |
| 858 | } |
| 859 | owner := *taskRecord.Owner |
| 860 | if owner.Kind.Normalize() != taskpkg.OwnerKindPool { |
| 861 | return "" |
| 862 | } |
| 863 | return strings.TrimSpace(owner.Ref) |
| 864 | } |
| 865 | |
| 866 | func taskRunSessionChannel(run taskpkg.Run) string { |
| 867 | if channel := strings.TrimSpace(run.CoordinationChannelID); channel != "" { |
no test coverage detected