Skip to content

Commit

Permalink
Merge branch 'main' into lenson/loader-dry-run
Browse files Browse the repository at this point in the history
  • Loading branch information
nosnelmil authored Nov 23, 2024
2 parents 8abe676 + 4fd007a commit e0fc2b8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/driver/failure/triggers.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package failure

import (
"github.com/sirupsen/logrus"
"github.com/vhive-serverless/loader/pkg/config"
"os/exec"
"strings"
"sync"
"time"

"github.com/sirupsen/logrus"
"github.com/vhive-serverless/loader/pkg/config"
)

const (
Expand All @@ -18,7 +19,7 @@ const (
)

func ScheduleFailure(platform string, config *config.FailureConfiguration) {
if config != nil && config.FailAt != 0 && config.FailComponent != "" {
if config != nil && config.FailureEnabled && config.FailAt != 0 && config.FailComponent != "" {
time.Sleep(time.Duration(config.FailAt) * time.Second)

switch platform {
Expand Down

0 comments on commit e0fc2b8

Please sign in to comment.