Skip to content

Commit 79126a8

Browse files
fix api specs
1 parent b965df1 commit 79126a8

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

api/specs/web-server/_long_running_tasks.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,20 @@ def get_async_job_status(
5353

5454
@router.delete(
5555
"/tasks/{task_id}",
56-
name="cancel_and_delete_task",
57-
description="Cancels and deletes a task",
56+
name="delete_task",
57+
description="Deletes a task",
58+
responses=_export_data_responses,
59+
status_code=status.HTTP_204_NO_CONTENT,
60+
)
61+
def selete_async_job(
62+
_path_params: Annotated[_PathParam, Depends()],
63+
): ...
64+
65+
66+
@router.post(
67+
"/tasks/{task_id}:abort",
68+
name="abort_task",
69+
description="Aborts a task",
5870
responses=_export_data_responses,
5971
status_code=status.HTTP_204_NO_CONTENT,
6072
)

0 commit comments

Comments
 (0)