From 72663d523adf447d98693c649b1943b5c089f4de Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 17 Jan 2025 09:55:54 +0100 Subject: [PATCH] run-queue: Fix stat calling --- run-queue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-queue b/run-queue index c0fa4d8da..729aeb6d4 100755 --- a/run-queue +++ b/run-queue @@ -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')}" ) }