Skip to content

Commit f6c3269

Browse files
committed
add toy model as output
1 parent e6efb1a commit f6c3269

File tree

2 files changed

+8
-2
lines changed
  • packages/models-library/src/models_library/api_schemas_storage
  • services/storage/src/simcore_service_storage/api/rabbitmq_rpc

2 files changed

+8
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from pydantic import BaseModel
2+
3+
4+
class ZipTask(BaseModel):
5+
msg: str
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
from models_library.api_schemas_storage.zipping_tasks import ZipTask
12
from servicelib.rabbitmq import RPCRouter
23

34
router = RPCRouter()
45

56

67
@router.expose()
7-
async def start_zipping(paths: list[str]) -> str:
8-
return f"Started zipping [ { ','.join(paths) } ]"
8+
async def start_zipping(paths: list[str]) -> ZipTask:
9+
return ZipTask(msg=f"Started zipping [ { ','.join(paths) } ]")

0 commit comments

Comments
 (0)