File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
services/director-v2/src/simcore_service_director_v2 Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ async def _progress_callback(
116116
117117 try :
118118 return await lrt_api .start_task (
119+ long_running_manager .rpc_client ,
119120 long_running_manager ,
120121 _task_remove_service_containers .__name__ ,
121122 unique = True ,
@@ -181,6 +182,7 @@ async def _progress_callback(
181182
182183 try :
183184 return await lrt_api .start_task (
185+ long_running_manager .rpc_client ,
184186 long_running_manager ,
185187 _task_save_service_state .__name__ ,
186188 unique = True ,
@@ -228,6 +230,7 @@ async def _progress_callback(
228230
229231 try :
230232 return await lrt_api .start_task (
233+ long_running_manager .rpc_client ,
231234 long_running_manager ,
232235 _task_push_service_outputs .__name__ ,
233236 unique = True ,
@@ -270,6 +273,7 @@ async def _task_cleanup_service_docker_resources(
270273
271274 try :
272275 return await lrt_api .start_task (
276+ long_running_manager .rpc_client ,
273277 long_running_manager ,
274278 _task_cleanup_service_docker_resources .__name__ ,
275279 unique = True ,
Original file line number Diff line number Diff line change 11from fastapi import FastAPI
22from servicelib .fastapi import long_running_tasks
3+ from servicelib .long_running_tasks .models import RabbitNamespace
34from servicelib .long_running_tasks .task import RedisNamespace
45
56from ...core .settings import AppSettings
67from . import api_client , scheduler
78
8- _LONG_RUNNING_TASKS_NAMESPACE : RedisNamespace = "director-v2"
9+ _LRT_REDIS_NAMESPACE : RedisNamespace = "director-v2"
10+ _LRT_RABBIT_NAMESPACE : RabbitNamespace = "director-v2"
911
1012
1113def setup (app : FastAPI ) -> None :
@@ -15,7 +17,9 @@ def setup(app: FastAPI) -> None:
1517 long_running_tasks .server .setup (
1618 app ,
1719 redis_settings = settings .REDIS ,
18- redis_namespace = _LONG_RUNNING_TASKS_NAMESPACE ,
20+ redis_namespace = _LRT_REDIS_NAMESPACE ,
21+ rabbit_settings = settings .DIRECTOR_V2_RABBITMQ ,
22+ rabbit_namespace = _LRT_RABBIT_NAMESPACE ,
1923 )
2024
2125 async def on_startup () -> None :
You can’t perform that action at this time.
0 commit comments