mirror of
https://github.com/simon987/od-database.git
synced 2025-12-14 15:19:03 +00:00
bugfix
This commit is contained in:
1
tasks.py
1
tasks.py
@@ -141,6 +141,7 @@ class TaskManager:
|
|||||||
|
|
||||||
pool = ThreadPool(processes=10)
|
pool = ThreadPool(processes=10)
|
||||||
pool.map(func=recrawl, iterable=websites_to_crawl)
|
pool.map(func=recrawl, iterable=websites_to_crawl)
|
||||||
|
pool.close()
|
||||||
|
|
||||||
def queue_task(self, task: Task):
|
def queue_task(self, task: Task):
|
||||||
max_assign_time = 24 * 7 * 3600
|
max_assign_time = 24 * 7 * 3600
|
||||||
|
|||||||
Reference in New Issue
Block a user