From 94de71140be2d0c80bf6a2e03cb9381b37736ed5 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 06 Feb 2026 17:03:02 +0000
Subject: [PATCH] =Some minor CRUD.js and UploadManager.js tweaks
---
inc/managers/queue/Queue.php | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/inc/managers/queue/Queue.php b/inc/managers/queue/Queue.php
index 54509fa..9a160e6 100644
--- a/inc/managers/queue/Queue.php
+++ b/inc/managers/queue/Queue.php
@@ -19,7 +19,7 @@
$this->registry = new TypeRegistry();
$this->locker = new Locker();
- $executor = new FilteredExecutor($this->storage);
+ $executor = new FilteredExecutor();
$this->processor = new Processor($this->storage, $executor, $this->registry);
add_action('jvb_process_queue', [$this, 'checkQueue']);
@@ -100,16 +100,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