File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
services/storage/src/simcore_service_storage/api/rabbitmq_rpc Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 2121
2222@router .expose ()
2323async def start_zipping (app : FastAPI , paths : ZipTaskStartInput ) -> TaskGet :
24-
24+ assert app # nosec
2525 return TaskGet (
2626 task_id = f"{ uuid4 ()} " ,
2727 task_name = ", " .join (str (p ) for p in paths .paths ),
@@ -33,11 +33,13 @@ async def start_zipping(app: FastAPI, paths: ZipTaskStartInput) -> TaskGet:
3333
3434@router .expose ()
3535async def abort_zipping (app : FastAPI , task_id : TaskId ) -> ZipTaskAbortOutput :
36+ assert app # nosec
3637 return ZipTaskAbortOutput (result = True , task_id = task_id )
3738
3839
3940@router .expose ()
4041async def get_zipping_status (app : FastAPI , task_id : TaskId ) -> TaskStatus :
42+ assert app # nosec
4143 progress = TaskProgress (
4244 task_id = task_id ,
4345 message = "Here's a status for you. You are welcome" ,
@@ -48,4 +50,5 @@ async def get_zipping_status(app: FastAPI, task_id: TaskId) -> TaskStatus:
4850
4951@router .expose ()
5052async def get_zipping_result (app : FastAPI , task_id : TaskId ) -> TaskResult :
53+ assert app # nosec
5154 return TaskResult (result = "Here's your result." , error = None )
You can’t perform that action at this time.
0 commit comments