@@ 42,9 42,6 @@ def gc_git():
"Packfile size in the gc_git job (B)",
["stage"],
registry=registry)
- gt = Gauge("gitsrht_periodic_gc_git_time",
- "Time spent GCing repositories by the gc_git job",
- registry=registry)
repos = (Repository.query
.offset(random.randrange(0, repo_count + 1 - limit))
@@ 53,7 50,6 @@ def gc_git():
ps.labels("pre").inc(sum(map(lambda p: p.stat().st_size,
os.scandir(os.path.join(r.path, "objects", "pack")))))
- @Timer(gt.inc)
def gc():
subprocess.run(["git", "-C", r.path, "gc", "--quiet"],
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)