(dependents []Dependency)
| 3140 | } |
| 3141 | |
| 3142 | func uniqueDependentTaskIDs(dependents []Dependency) []string { |
| 3143 | if len(dependents) == 0 { |
| 3144 | return nil |
| 3145 | } |
| 3146 | |
| 3147 | seen := make(map[string]struct{}, len(dependents)) |
| 3148 | ids := make([]string, 0, len(dependents)) |
| 3149 | for _, dependent := range dependents { |
| 3150 | taskID := strings.TrimSpace(dependent.TaskID) |
| 3151 | if taskID == "" { |
| 3152 | continue |
| 3153 | } |
| 3154 | if _, ok := seen[taskID]; ok { |
| 3155 | continue |
| 3156 | } |
| 3157 | seen[taskID] = struct{}{} |
| 3158 | ids = append(ids, taskID) |
| 3159 | } |
| 3160 | |
| 3161 | sort.Strings(ids) |
| 3162 | return ids |
| 3163 | } |
| 3164 | |
| 3165 | func (m *Service) hasUnresolvedDependenciesReadOnlyWithStore( |
| 3166 | ctx context.Context, |
no test coverage detected