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')}" ) }