From 1d206b640c518a70002c8418fa082319c9652dd8 Mon Sep 17 00:00:00 2001 From: Jim Mason Date: Wed, 6 Dec 2023 15:38:37 +0000 Subject: [PATCH] added DBO release to image processing tasks --- controllers/PushServer.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controllers/PushServer.php b/controllers/PushServer.php index 8bf88192..8ef5a321 100644 --- a/controllers/PushServer.php +++ b/controllers/PushServer.php @@ -416,6 +416,8 @@ protected function injectImageData($msg) { $entry['info_url'] = $infoUrl ?? null; $entry['image_url'] = isset($imageUuid) ? $imageApi->getCachePath($imageUuid) : ($entry['info_url'] || $entry['track_tag'] ? "img/discogs.svg" : "img/blank.gif"); $msg = json_encode($entry); + + DBO::release(); } } @@ -447,6 +449,8 @@ protected function processImageQueue() { $imageUuid = $imageApi->insertArtistArt($artist, $result->imageUrl, $result->infoUrl); } + DBO::release(); + if(!$this->imageQ->isEmpty()) { $this->loop->addTimer(self::QUERY_DELAY, function() { $this->processImageQueue();