Skip to content

Commit 878aea1

Browse files
committed
add count limit
1 parent 43edd4a commit 878aea1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/util/string.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,5 +523,8 @@ func SetTaskDependencies(task *protos.TaskToCtld, depStr string) error {
523523
})
524524
}
525525
}
526+
if len(task.Dependencies.Dependencies) > 50 {
527+
return fmt.Errorf("dependency count should be no more than 50")
528+
}
526529
return nil
527530
}

0 commit comments

Comments
 (0)