From f20a926eddecf644291154ac5dc327b65193fef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Wed, 24 Jul 2024 20:49:46 +0200 Subject: [PATCH] fix: Avoid requeuing captures that are actually just ongoing... --- bin/background_processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/background_processing.py b/bin/background_processing.py index 155000fc..9d6bffcd 100755 --- a/bin/background_processing.py +++ b/bin/background_processing.py @@ -81,7 +81,7 @@ class Processing(AbstractManager): to_requeue: list[str] = [] try: for uuid, _ in self.lookyloo.redis.zscan_iter('to_capture'): - if self.lookyloo.redis.hexists(uuid, 'not_queued'): + if self.lookyloo.redis.hget(uuid, 'not_queued') == '1': # The capture is marked as not queued to_requeue.append(uuid) elif self.lookyloo.lacus.get_capture_status(uuid) in [CaptureStatusPy.UNKNOWN, CaptureStatusCore.UNKNOWN]: