(state session.State)
| 549 | } |
| 550 | |
| 551 | func taskRoleSessionStateReusable(state session.State) bool { |
| 552 | switch state { |
| 553 | case session.StateStarting, session.StateActive: |
| 554 | return true |
| 555 | default: |
| 556 | return false |
| 557 | } |
| 558 | } |
| 559 | |
| 560 | func taskRoleSessionName(activation taskRoleActivation) string { |
| 561 | base := fmt.Sprintf("task-role:%s:%s", activation.AgentName, firstNonEmpty(activation.Channel, "default")) |
no outgoing calls
no test coverage detected