(run Run, actor ActorContext)
| 2444 | } |
| 2445 | |
| 2446 | func taskRunHookClaimerSessionID(run Run, actor ActorContext) string { |
| 2447 | if strings.TrimSpace(run.SessionID) != "" { |
| 2448 | return strings.TrimSpace(run.SessionID) |
| 2449 | } |
| 2450 | if actor.Actor.Kind.Normalize() == ActorKindAgentSession { |
| 2451 | return strings.TrimSpace(actor.Actor.Ref) |
| 2452 | } |
| 2453 | return "" |
| 2454 | } |
| 2455 | |
| 2456 | func taskPriorityMin(priority Priority) int { |
| 2457 | switch priority.Normalize() { |
no test coverage detected