Skip to content

Commit

Permalink
Also delete cache misses on cache stat clean-up (#6334)
Browse files Browse the repository at this point in the history
  • Loading branch information
tempoz committed May 14, 2024
1 parent 17373b4 commit 871a4c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/remote_cache/hit_tracker/hit_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -711,4 +711,8 @@ func CleanupCacheStats(ctx context.Context, env environment.Env, iid string) {
if err := c.Delete(ctx, counterKey(iid)); err != nil {
log.Warningf("Failed to clean up cache stats for invocation %s: %s", iid, err)
}

if err := c.Delete(ctx, targetMissesKey(iid)); err != nil {
log.Warningf("Failed to clean up cache stats for invocation %s: %s", iid, err)
}
}

0 comments on commit 871a4c5

Please sign in to comment.