From 3b3bd067d0ff2671fca2890c14428c97e1011a2b Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Wed, 11 Feb 2026 03:20:21 +0000
Subject: [PATCH] =Hey guess what? Meta->set() and Meta->setAll() doesn't actually save the meta to the database. Went through the files and added a ->save() call after every set

---
 inc/managers/queue/Queue.php |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/inc/managers/queue/Queue.php b/inc/managers/queue/Queue.php
index 54509fa..08f3212 100644
--- a/inc/managers/queue/Queue.php
+++ b/inc/managers/queue/Queue.php
@@ -11,6 +11,7 @@
 	private Storage $storage;
 	private Processor $processor;
 	private TypeRegistry $registry;
+	public Executor $executor;
 	private Locker $locker;
 
 	public function __construct()
@@ -19,8 +20,8 @@
 		$this->registry = new TypeRegistry();
 		$this->locker = new Locker();
 
-		$executor = new FilteredExecutor($this->storage);
-		$this->processor = new Processor($this->storage, $executor, $this->registry);
+		$this->executor = new FilteredExecutor();
+		$this->processor = new Processor($this->storage, $this->executor, $this->registry);
 
 		add_action('jvb_process_queue', [$this, 'checkQueue']);
 		add_action('jvb_queue_maintenance', [$this, 'maintenance']);
@@ -100,16 +101,11 @@
 	public function maintenance(): void
 	{
 		$this->locker->withLock(function () {
-			$this->cleanupStuck();
+			$this->storage->resetStuckOperations(30);
 		});
 
 	}
 
-	private function cleanupStuck(): void
-	{
-		$this->storage->resetStuckOperations(30);
-	}
-
 	// === Public Getters ===
 
 	public function get(string $id): ?Operation

--
Gitblit v1.10.0