revert task queuing

This commit is contained in:
Simon
2018-11-18 11:10:44 -05:00
parent 6e491513bf
commit 4ce807c8a0
2 changed files with 10 additions and 25 deletions

8
app.py
View File

@@ -604,6 +604,14 @@ 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, search)
return "Successfully logged task result and indexed files"
else: