Skip to content

Commit 14eede7

Browse files
author
Andrei Neagu
committed
fixed interface
1 parent de9805b commit 14eede7

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

services/director-v2/src/simcore_service_director_v2/api/routes/dynamic_scheduler.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

services/director-v2/src/simcore_service_director_v2/modules/dynamic_sidecar/module_setup.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
from fastapi import FastAPI
22
from servicelib.fastapi import long_running_tasks
3+
from servicelib.long_running_tasks.models import RabbitNamespace
34
from servicelib.long_running_tasks.task import RedisNamespace
45

56
from ...core.settings import AppSettings
67
from . 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

1113
def 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:

0 commit comments

Comments
 (0)