mirror of https://github.com/CIRCL/lookyloo
fix: Avoid requeuing captures that are actually just ongoing...
parent
96837c46ac
commit
f20a926edd
|
@ -81,7 +81,7 @@ class Processing(AbstractManager):
|
||||||
to_requeue: list[str] = []
|
to_requeue: list[str] = []
|
||||||
try:
|
try:
|
||||||
for uuid, _ in self.lookyloo.redis.zscan_iter('to_capture'):
|
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
|
# The capture is marked as not queued
|
||||||
to_requeue.append(uuid)
|
to_requeue.append(uuid)
|
||||||
elif self.lookyloo.lacus.get_capture_status(uuid) in [CaptureStatusPy.UNKNOWN, CaptureStatusCore.UNKNOWN]:
|
elif self.lookyloo.lacus.get_capture_status(uuid) in [CaptureStatusPy.UNKNOWN, CaptureStatusCore.UNKNOWN]:
|
||||||
|
|
Loading…
Reference in New Issue