Completed tasks queue

This commit is contained in:
Simon
2018-11-17 21:36:29 -05:00
parent 876a511b54
commit 1812ec932d
2 changed files with 30 additions and 9 deletions

8
app.py
View File

@@ -604,14 +604,6 @@ def api_complete_task():
filename = None
taskManager.complete_task(filename, task, task_result, name)
if filename and os.path.exists(filename):
os.remove(filename)
# Handle task callback
callback = PostCrawlCallbackFactory.get_callback(task)
if callback:
callback.run(task_result, searchEngine)
return "Successfully logged task result and indexed files"
else: