File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed
services/web/server/src/simcore_service_webserver/api/v0 Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 77from typing import Annotated , Any
88
99from fastapi import APIRouter , Depends , status
10- from fastapi .responses import StreamingResponse
1110from models_library .generics import Envelope
1211from models_library .rest_error import EnvelopedError
1312from servicelib .aiohttp .long_running_tasks ._routes import _PathParam
@@ -52,8 +51,6 @@ def get_async_job_status(
5251
5352@router .get (
5453 "/tasks/{task_id}/stream" ,
55- response_model = StreamingResponse ,
56- responses = _export_data_responses ,
5754)
5855def get_async_job_stream (
5956 _path_params : Annotated [_PathParam , Depends ()],
Original file line number Diff line number Diff line change @@ -4001,6 +4001,26 @@ paths:
40014001 schema:
40024002 $ref: '#/components/schemas/EnvelopedError'
40034003 description: Internal Server Error
4004+ /v0/tasks/{task_id}/stream:
4005+ get:
4006+ tags:
4007+ - long-running-tasks
4008+ summary: Get Async Job Stream
4009+ description: Retrieves the stream of a task
4010+ operationId: get_async_job_stream
4011+ parameters:
4012+ - name: task_id
4013+ in: path
4014+ required: true
4015+ schema:
4016+ type: string
4017+ title: Task Id
4018+ responses:
4019+ '200':
4020+ description: Successful Response
4021+ content:
4022+ application/json:
4023+ schema: {}
40044024 /v0/tasks/{task_id}/result:
40054025 get:
40064026 tags:
You can’t perform that action at this time.
0 commit comments