We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ddea3fb + 6b4b01f commit ad70e60Copy full SHA for ad70e60
clusterloader2/pkg/tuningset/time_limited.go
@@ -34,6 +34,9 @@ func newTimeLimitedLoad(params *api.TimeLimitedLoad) TuningSet {
34
}
35
36
func (t *timeLimitedLoad) Execute(actions []func()) {
37
+ if len(actions) == 0 {
38
+ return
39
+ }
40
sleepDuration := time.Duration(t.params.TimeLimit.ToTimeDuration().Nanoseconds() / int64(len(actions)))
41
var wg wait.Group
42
for i := range actions {
0 commit comments