Skip to content

Commit

Permalink
run-queue: Fix stat calling
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt authored and jelly committed Jan 17, 2025
1 parent f0bebc2 commit 72663d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run-queue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def consume_webhook_queue(dq: distributed_queue.DistributedQueue) -> ConsumeResu
"command": (
f"./store-tests --db {db} --repo {repo} {sha} && "
# prune the db if it gets too big; 14 days weighs about 15 MB
f"if [ $(stat +%c {db}) -gt 25000000 ]; then ./prometheus-stats --db {db} --prune 14; fi &&"
f"if [ $(stat -c %s {db}) -gt 25000000 ]; then ./prometheus-stats --db {db} --prune 14; fi &&"
f"./prometheus-stats --db {db} --s3 {os.path.join(LOG_STORE, 'prometheus')}"
)
}
Expand Down

0 comments on commit 72663d5

Please sign in to comment.