mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-22 14:17:16 +00:00
fix: [crawler] fix crawler queue stats
This commit is contained in:
parent
759d241b75
commit
9fb19028fe
1 changed files with 1 additions and 1 deletions
|
@ -1023,7 +1023,7 @@ 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:
|
||||
if not task.is_in_queue() and task.get_status() is None and not task.get_capture():
|
||||
task.delete()
|
||||
|
||||
#### Blocklist ####
|
||||
|
|
Loading…
Reference in a new issue