Skip to content

Commit

Permalink
Fix return statement in request handler to ensure output is returned …
Browse files Browse the repository at this point in the history
…on success
  • Loading branch information
Aleksandr Movchan committed Nov 12, 2024
1 parent 1e6054b commit f26671f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aana/api/request_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,10 @@ async def execute_task(self, task_id: str | UUID) -> Any:
TaskRepository(session).update_status(
task_id, TaskStatus.FAILED, 0, error
)
else:
return out
finally:
self.running_tasks.remove(task_id)
return out

@app.get(
"/tasks/get/{task_id}",
Expand Down

0 comments on commit f26671f

Please sign in to comment.