Skip to content

Commit

Permalink
perf: delay uploading scaned replay files
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeEirc committed Dec 11, 2024
1 parent 2f04602 commit 4657403
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/scan/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"io/fs"
"os"
"path/filepath"
"time"

"github.com/jumpserver/replay_uploader/cmd/common"
"github.com/jumpserver/replay_uploader/cmd/upload"
Expand Down Expand Up @@ -63,6 +64,12 @@ func Execute(jmsService *service.JMService, conf *model.TerminalConfig, rootDir
ReturnResp(os.Stdout, res)
return
}
// DISABLED_DELAY_UPLOAD

if os.Getenv("DISABLED_DELAY_UPLOAD") != "1" {
time.Sleep(10 * time.Minute)
}

var (
successFiles []string
failureFiles []string
Expand Down

0 comments on commit 4657403

Please sign in to comment.