mirror of
https://github.com/simon987/od-database.git
synced 2025-12-20 01:45:57 +00:00
Crawl server now holds at most max_workers + 1 tasks in pool to minimize waiting time and to avoid loss of too many tasks in case of crash/restart
This commit is contained in:
@@ -4,7 +4,7 @@ from crawl_server.task_manager import TaskManager, Task, TaskResult
|
||||
import os
|
||||
app = Flask(__name__)
|
||||
|
||||
tm = TaskManager("tm_db.sqlite3")
|
||||
tm = TaskManager("tm_db.sqlite3", 2)
|
||||
|
||||
|
||||
@app.route("/task/")
|
||||
|
||||
Reference in New Issue
Block a user