mirror of
https://github.com/simon987/od-database.git
synced 2025-12-13 14:59:02 +00:00
revert task queuing
This commit is contained in:
8
app.py
8
app.py
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user