@@ -46,8 +46,6 @@ def _get_job_id_data(user_id: UserID, product_name: ProductName) -> AsyncJobName
4646 "" ,
4747 response_model = ApiServerEnvelope [list [TaskGet ]],
4848 responses = _DEFAULT_TASK_STATUS_CODES ,
49- status_code = status .HTTP_200_OK ,
50- name = "list_tasks" ,
5149 description = create_route_description (
5250 base = "List all tasks" ,
5351 changelog = [
@@ -87,9 +85,7 @@ async def list_tasks(
8785@router .get (
8886 "/{task_id}" ,
8987 response_model = TaskStatus ,
90- name = "get_task_status" ,
9188 responses = _DEFAULT_TASK_STATUS_CODES ,
92- status_code = status .HTTP_200_OK ,
9389 description = create_route_description (
9490 base = "Get task status" ,
9591 changelog = [
@@ -121,7 +117,6 @@ async def get_task_status(
121117@router .post (
122118 "/{task_id}:cancel" ,
123119 status_code = status .HTTP_204_NO_CONTENT ,
124- name = "cancel_task" ,
125120 responses = _DEFAULT_TASK_STATUS_CODES ,
126121 description = create_route_description (
127122 base = "Cancel task" ,
@@ -146,7 +141,6 @@ async def cancel_task(
146141@router .get (
147142 "/{task_id}/result" ,
148143 response_model = TaskResult ,
149- name = "get_task_result" ,
150144 responses = {
151145 status .HTTP_404_NOT_FOUND : {
152146 "description" : "Task result not found" ,
@@ -158,7 +152,6 @@ async def cancel_task(
158152 },
159153 ** _DEFAULT_TASK_STATUS_CODES ,
160154 },
161- status_code = status .HTTP_200_OK ,
162155 description = create_route_description (
163156 base = "Get task result" ,
164157 changelog = [
0 commit comments