|
53 | 53 | PricingAndHardwareInfoTuple, |
54 | 54 | PricingInfo, |
55 | 55 | ) |
56 | | -from models_library.services import DynamicServiceKey, ServiceKey, ServiceVersion |
| 56 | +from models_library.services import ServiceKey, ServiceVersion |
57 | 57 | from models_library.services_resources import ( |
58 | 58 | DEFAULT_SINGLE_SERVICE_NAME, |
59 | 59 | ServiceResourcesDict, |
|
89 | 89 | ProjectNodesNodeNotFoundError, |
90 | 90 | ) |
91 | 91 | from simcore_postgres_database.webserver_models import ProjectType |
92 | | -from simcore_service_webserver.projects._db_utils import PermissionStr |
93 | 92 |
|
94 | 93 | from ..application_settings import get_application_settings |
95 | 94 | from ..catalog import client as catalog_client |
|
127 | 126 | check_user_project_permission, |
128 | 127 | has_user_project_access_rights, |
129 | 128 | ) |
| 129 | +from ._db_utils import PermissionStr |
130 | 130 | from ._nodes_utils import set_reservation_same_as_limit, validate_new_service_resources |
131 | 131 | from ._wallets_api import connect_wallet_to_project, get_project_wallet |
132 | 132 | from .db import APP_PROJECT_DBAPI, ProjectDBAPI |
@@ -556,7 +556,7 @@ def _check_required_input(required_input_key: KeyIDStr) -> None: |
556 | 556 | ) |
557 | 557 |
|
558 | 558 |
|
559 | | -async def _start_dynamic_service( |
| 559 | +async def _start_dynamic_service( # noqa: C901 |
560 | 560 | request: web.Request, |
561 | 561 | *, |
562 | 562 | service_key: ServiceKey, |
@@ -742,7 +742,7 @@ async def _() -> None: |
742 | 742 | can_save=save_state, |
743 | 743 | project_id=project_uuid, |
744 | 744 | user_id=user_id, |
745 | | - service_key=DynamicServiceKey(service_key), |
| 745 | + service_key=service_key, |
746 | 746 | service_version=service_version, |
747 | 747 | service_uuid=node_uuid, |
748 | 748 | request_dns=extract_dns_without_default_port(request.url), |
|
0 commit comments