From 801d056da8056ee7a2ae7633033644dbee3ae339 Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 18 Nov 2018 11:11:38 -0500 Subject: [PATCH] revert task queuing pt. 2 --- app.py | 2 +- tasks.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app.py b/app.py index 7a97016..785d8d8 100644 --- a/app.py +++ b/app.py @@ -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) diff --git a/tasks.py b/tasks.py index 5aaafa5..258277e 100644 --- a/tasks.py +++ b/tasks.py @@ -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))