From 8cdf548561bf9ad2c48542fe3b075e97a306f2bb Mon Sep 17 00:00:00 2001 From: Broque Thomas Date: Tue, 3 Feb 2026 21:26:15 -0800 Subject: [PATCH] fix - cleared status too early before it could be read for live status updated. Musicbrainz --- core/musicbrainz_worker.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/musicbrainz_worker.py b/core/musicbrainz_worker.py index 383d3b98..808ab00d 100644 --- a/core/musicbrainz_worker.py +++ b/core/musicbrainz_worker.py @@ -112,12 +112,14 @@ class MusicBrainzWorker: time.sleep(1) continue + # Clear previous item before getting next + self.current_item = None + # Get next item to process item = self._get_next_item() if not item: # No more items - sleep for a bit - self.current_item = None logger.debug("No pending items, sleeping...") time.sleep(10) continue @@ -128,9 +130,7 @@ class MusicBrainzWorker: # Process the item self._process_item(item) - # Clear current item after processing - self.current_item = None - + # Keep current_item set during sleep so UI can see what was just processed # Rate limit: 1 request per second time.sleep(1)