Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
feat: reset force pack timer on data received
Browse files Browse the repository at this point in the history
  • Loading branch information
elijaharita committed Oct 24, 2023
1 parent cebf1f8 commit 07eb38d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion integration/singularity/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func (s *SingularityStore) runPreparationJobs() {
return

// If a new file came in, prepare it for packing, and mark the source
// ready to pack if the threshold is reached
// ready to pack if the threshold is reached. Also reset the timer.
case fileID := <-s.toPack:
prepareToPackFileRes, err := s.singularityClient.File.PrepareToPackFile(&file.PrepareToPackFileParams{
Context: ctx,
Expand All @@ -312,6 +312,7 @@ func (s *SingularityStore) runPreparationJobs() {
logger.Errorw("preparing to pack source", "error", err)
}
}
s.resetForcePackTimer()

// If forced pack message comes through (e.g. from pack threshold max
// wait time being exceeded), prepare to pack source immediately
Expand Down

0 comments on commit 07eb38d

Please sign in to comment.