Skip to content

Commit 9fc652a

Browse files
author
Andrei Neagu
committed
fixed borken tests
1 parent 6032282 commit 9fc652a

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

api/specs/web-server/_long_running_tasks.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
response_model=Envelope[list[TaskGet]],
3535
responses=_export_data_responses,
3636
)
37-
def list_tasks_():
37+
def get_async_jobs():
3838
"""Lists all long running tasks"""
3939

4040

@@ -43,7 +43,7 @@ def list_tasks_():
4343
response_model=Envelope[TaskStatus],
4444
responses=_export_data_responses,
4545
)
46-
def get_task_status_(
46+
def get_async_job_status(
4747
_path_params: Annotated[_PathParam, Depends()],
4848
):
4949
"""Retrieves the status of a task"""
@@ -54,7 +54,7 @@ def get_task_status_(
5454
responses=_export_data_responses,
5555
status_code=status.HTTP_204_NO_CONTENT,
5656
)
57-
def remove_task_(
57+
def cancel_async_job(
5858
_path_params: Annotated[_PathParam, Depends()],
5959
):
6060
"""Cancels and removes a task"""
@@ -65,7 +65,7 @@ def remove_task_(
6565
response_model=Any,
6666
responses=_export_data_responses,
6767
)
68-
def get_task_result_(
68+
def get_async_job_result(
6969
_path_params: Annotated[_PathParam, Depends()],
7070
):
7171
"""Retrieves the result of a task"""

services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3851,9 +3851,9 @@ paths:
38513851
get:
38523852
tags:
38533853
- long-running-tasks
3854-
summary: 'List Tasks '
3854+
summary: Get Async Jobs
38553855
description: Lists all long running tasks
3856-
operationId: list_tasks_
3856+
operationId: get_async_jobs
38573857
responses:
38583858
'200':
38593859
description: Successful Response
@@ -3889,9 +3889,9 @@ paths:
38893889
get:
38903890
tags:
38913891
- long-running-tasks
3892-
summary: 'Get Task Status '
3892+
summary: Get Async Job Status
38933893
description: Retrieves the status of a task
3894-
operationId: get_task_status_
3894+
operationId: get_async_job_status
38953895
parameters:
38963896
- name: task_id
38973897
in: path
@@ -3933,9 +3933,9 @@ paths:
39333933
delete:
39343934
tags:
39353935
- long-running-tasks
3936-
summary: 'Remove Task '
3936+
summary: Cancel Async Job
39373937
description: Cancels and removes a task
3938-
operationId: remove_task_
3938+
operationId: cancel_async_job
39393939
parameters:
39403940
- name: task_id
39413941
in: path
@@ -3974,9 +3974,9 @@ paths:
39743974
get:
39753975
tags:
39763976
- long-running-tasks
3977-
summary: 'Get Task Result '
3977+
summary: Get Async Job Result
39783978
description: Retrieves the result of a task
3979-
operationId: get_task_result_
3979+
operationId: get_async_job_result
39803980
parameters:
39813981
- name: task_id
39823982
in: path
@@ -3990,7 +3990,7 @@ paths:
39903990
content:
39913991
application/json:
39923992
schema:
3993-
title: 'Response Get Task Result '
3993+
title: Response Get Async Job Result
39943994
'404':
39953995
content:
39963996
application/json:

0 commit comments

Comments
 (0)