mirror of https://github.com/CIRCL/AIL-framework
fix: [crawler] fix reload_crawlers_stats queues stats
parent
5b5ee502d0
commit
3faea7997c
|
@ -1101,7 +1101,13 @@ def reload_crawlers_stats():
|
|||
tasks = r_crawler.smembers(f'crawler:queue:type:{domain_type}')
|
||||
for task_uuid in tasks:
|
||||
task = CrawlerTask(task_uuid)
|
||||
if not task.is_in_queue() and task.get_status() is None and not task.get_capture():
|
||||
if not task.is_in_queue() and task.get_status() is None:
|
||||
capture = task.get_capture()
|
||||
if capture:
|
||||
c = CrawlerCapture(capture)
|
||||
if not c.exists():
|
||||
task.delete()
|
||||
else:
|
||||
task.delete()
|
||||
|
||||
#### Blocklist ####
|
||||
|
|
Loading…
Reference in New Issue