mirror of
https://github.com/simon987/od-database.git
synced 2025-04-19 18:36:44 +00:00
bugfix
This commit is contained in:
parent
f35cc9dd5b
commit
e02d08ca62
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user