mirror of
https://github.com/simon987/od-database.git
synced 2025-12-13 23:09:01 +00:00
Completed tasks queue
This commit is contained in:
8
app.py
8
app.py
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user