fix: Avoid requeuing captures that are actually just ongoing...

pull/929/head
Raphaël Vinot 2024-07-24 20:49:46 +02:00
parent 96837c46ac
commit f20a926edd
1 changed files with 1 additions and 1 deletions

View File

@ -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]: