Skip to content

Commit

Permalink
fix: [crawler] fix crawler queue stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Sep 17, 2024
1 parent 759d241 commit 9fb1902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/lib/crawlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ####
Expand Down

0 comments on commit 9fb1902

Please sign in to comment.