MCPcopy Create free account
hub / github.com/compozy/agh / uniqueDependentTaskIDs

Function uniqueDependentTaskIDs

internal/task/manager.go:3142–3163  ·  view source on GitHub ↗
(dependents []Dependency)

Source from the content-addressed store, hash-verified

3140}
3141
3142func 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
3165func (m *Service) hasUnresolvedDependenciesReadOnlyWithStore(
3166 ctx context.Context,

Callers 1

deleteTaskWithStoreMethod · 0.85

Calls 1

appendFunction · 0.85

Tested by

no test coverage detected