From 219096d10bc83f9d57dd94a3895cf41ff9dfeef1 Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 10 Jan 2024 17:25:02 +0000 Subject: [PATCH] show queue length --- ext/s3/main.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/s3/main.php b/ext/s3/main.php index 86c5c640..95ac21cc 100644 --- a/ext/s3/main.php +++ b/ext/s3/main.php @@ -48,6 +48,8 @@ class S3 extends Extension } if ($event->cmd == "s3-sync") { if(count($event->args) == 0) { + $count = $database->get_one("SELECT COUNT(*) FROM s3_sync_queue"); + print("{$count} items in queue\n"); foreach($database->get_all("SELECT * FROM s3_sync_queue ORDER BY time ASC") as $row) { if($row['action'] == "S") { $image = Image::by_hash($row['hash']);