Skip to content

Commit

Permalink
update processing grace period to 5 sync periods
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Dittamo <[email protected]>
  • Loading branch information
pvditt committed May 24, 2024
1 parent 29852b3 commit bbfb6d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flytestdlib/cache/auto_refresh.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func (w *autoRefresh) inProcessing(key interface{}) bool {
item, found := w.processing.Load(key)
if found {
// handle potential race conditions where the item is in processing but not in the workqueue
if timeItem, ok := item.(time.Time); ok && time.Since(timeItem) > (w.syncPeriod*10) {
if timeItem, ok := item.(time.Time); ok && time.Since(timeItem) > (w.syncPeriod*5) {
w.processing.Delete(key)
return false
}
Expand Down

0 comments on commit bbfb6d0

Please sign in to comment.