Skip to content

Commit 6e5eeb3

Browse files
author
Andrei Neagu
committed
fixed interface
1 parent 49a79b2 commit 6e5eeb3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

api/specs/web-server/_long_running_tasks_legacy.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
name="list_tasks",
2727
description="Lists all long running tasks",
2828
)
29-
def list_tasks(): ...
29+
async def list_tasks(): ...
3030

3131

3232
@router.get(
@@ -35,7 +35,7 @@ def list_tasks(): ...
3535
name="get_task_status",
3636
description="Retrieves the status of a task",
3737
)
38-
def get_task_status(
38+
async def get_task_status(
3939
_path_params: Annotated[_PathParam, Depends()],
4040
): ...
4141

@@ -46,7 +46,7 @@ def get_task_status(
4646
description="Cancels and deletes a task",
4747
status_code=status.HTTP_204_NO_CONTENT,
4848
)
49-
def cancel_and_delete_task(
49+
async def cancel_and_delete_task(
5050
_path_params: Annotated[_PathParam, Depends()],
5151
): ...
5252

@@ -57,6 +57,6 @@ def cancel_and_delete_task(
5757
response_model=Any,
5858
description="Retrieves the result of a task",
5959
)
60-
def get_task_result(
60+
async def get_task_result(
6161
_path_params: Annotated[_PathParam, Depends()],
6262
): ...

0 commit comments

Comments
 (0)