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

Function requiredTaskRunIDs

internal/cli/task.go:2945–2958  ·  view source on GitHub ↗
(rawRunIDs []string)

Source from the content-addressed store, hash-verified

2943}
2944
2945func requiredTaskRunIDs(rawRunIDs []string) ([]string, error) {
2946 if len(rawRunIDs) == 0 {
2947 return nil, errors.New("cli: at least one run id is required")
2948 }
2949 runIDs := make([]string, 0, len(rawRunIDs))
2950 for _, rawRunID := range rawRunIDs {
2951 runID, err := requiredAgentTaskRunID(rawRunID)
2952 if err != nil {
2953 return nil, err
2954 }
2955 runIDs = append(runIDs, runID)
2956 }
2957 return runIDs, nil
2958}
2959
2960func validateAgentTaskLeaseSeconds(seconds int64) error {
2961 if seconds < 0 {

Callers 4

runTaskFailCommandFunction · 0.85
newTaskReleaseCommandFunction · 0.85
newTaskRetryCommandFunction · 0.85
newTaskRunRecoverCommandFunction · 0.85

Calls 2

requiredAgentTaskRunIDFunction · 0.85
appendFunction · 0.85

Tested by

no test coverage detected