Skip to content

Commit

Permalink
add count limit
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessOIer committed Aug 7, 2024
1 parent 43edd4a commit 878aea1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/util/string.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,5 +523,8 @@ func SetTaskDependencies(task *protos.TaskToCtld, depStr string) error {
})
}
}
if len(task.Dependencies.Dependencies) > 50 {
return fmt.Errorf("dependency count should be no more than 50")
}
return nil
}

0 comments on commit 878aea1

Please sign in to comment.