Skip to content

Commit fdff2d8

Browse files
committed
fix import error
1 parent 9fe331b commit fdff2d8

File tree

1 file changed

+5
-4
lines changed
  • services/api-server/src/simcore_service_api_server/api/routes

1 file changed

+5
-4
lines changed

services/api-server/src/simcore_service_api_server/api/routes/tasks.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from servicelib.fastapi.dependencies import get_app
1919
from servicelib.logging_errors import create_troubleshootting_log_kwargs
2020

21+
from ...clients.celery_task_manager import get_task_filter
2122
from ...models.schemas.base import ApiServerEnvelope
2223
from ...models.schemas.errors import ErrorGet
2324
from ..dependencies.authentication import get_current_user_id, get_product_name
@@ -60,7 +61,7 @@ async def list_tasks(
6061
task_manager = get_task_manager(app)
6162

6263
tasks = await task_manager.list_tasks(
63-
task_filter=_get_task_filter(user_id, product_name),
64+
task_filter=get_task_filter(user_id, product_name),
6465
)
6566

6667
app_router = app.router
@@ -102,7 +103,7 @@ async def get_task_status(
102103
task_manager = get_task_manager(app)
103104

104105
task_status = await task_manager.get_task_status(
105-
task_filter=_get_task_filter(user_id, product_name),
106+
task_filter=get_task_filter(user_id, product_name),
106107
task_uuid=TaskUUID(f"{task_id}"),
107108
)
108109

@@ -137,7 +138,7 @@ async def cancel_task(
137138
task_manager = get_task_manager(app)
138139

139140
await task_manager.cancel_task(
140-
task_filter=_get_task_filter(user_id, product_name),
141+
task_filter=get_task_filter(user_id, product_name),
141142
task_uuid=TaskUUID(f"{task_id}"),
142143
)
143144

@@ -171,7 +172,7 @@ async def get_task_result(
171172
product_name: Annotated[ProductName, Depends(get_product_name)],
172173
):
173174
task_manager = get_task_manager(app)
174-
task_filter = _get_task_filter(user_id, product_name)
175+
task_filter = get_task_filter(user_id, product_name)
175176

176177
task_status = await task_manager.get_task_status(
177178
task_filter=task_filter,

0 commit comments

Comments
 (0)