revert task queuing pt. 2

This commit is contained in:
Simon 2018-11-18 11:11:38 -05:00
parent 4ce807c8a0
commit 801d056da8
2 changed files with 1 additions and 2 deletions

2
app.py
View File

@ -602,7 +602,7 @@ def api_complete_task():
filename = "./tmp/" + str(task_result.website_id) + ".json"
if not os.path.exists(filename):
filename = None
taskManager.complete_task(filename, task, task_result, name)
taskManager.complete_task(filename)
if filename and os.path.exists(filename):
os.remove(filename)

View File

@ -87,7 +87,6 @@ class TaskManager:
self.db.log_result(task_result)
def queue_task(self, task: Task):
self.db.put_task(task)
print("Queued task and made it available to crawlers: " + str(task.website_id))