Skip to content

Commit

Permalink
Expose threadhold value for start status
Browse files Browse the repository at this point in the history
  • Loading branch information
noboruma committed Sep 29, 2023
1 parent 1bf025c commit 6c568de
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions utils/tasks/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,12 @@ func newScanContext(scanID string, res chan error) *ScanContext {
func StartStatusReporter(
scanId string,
sendScanStatus func(ScanStatus) error,
sv StatusValues) (chan error, *ScanContext) {
sv StatusValues,
threshold time.Duration) (chan error, *ScanContext) {

res := make(chan error)
scanCtx := newScanContext(scanId, res)

//If we don't get any active status back within threshold,
//we consider the scan job as dead
threshold := 20 * time.Minute
go func() {
ticker := time.NewTicker(30 * time.Second)
var err error
Expand Down

0 comments on commit 6c568de

Please sign in to comment.