Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion periodic_enqueuer.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (pe *periodicEnqueuer) shouldEnqueue() bool {
return true
}

return lastEnqueue < (nowEpochSeconds() - int64(periodicEnqueuerSleep/time.Minute))
return lastEnqueue < (nowEpochSeconds() - int64(periodicEnqueuerSleep/time.Second))
}

func makeUniquePeriodicID(name, spec string, epoch int64) string {
Expand Down
2 changes: 1 addition & 1 deletion periodic_enqueuer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func TestPeriodicEnqueuer(t *testing.T) {

assert.False(t, pe.shouldEnqueue())

setNowEpochSecondsMock(1468359454 + int64(periodicEnqueuerSleep/time.Minute) + 10)
setNowEpochSecondsMock(1468359454 + int64(periodicEnqueuerSleep/time.Second) + 10)

assert.True(t, pe.shouldEnqueue())
}
Expand Down