diff --git a/services/api-server/src/simcore_service_api_server/api/routes/solvers_jobs.py b/services/api-server/src/simcore_service_api_server/api/routes/solvers_jobs.py index 2623c9b505c..edb95acafb1 100644 --- a/services/api-server/src/simcore_service_api_server/api/routes/solvers_jobs.py +++ b/services/api-server/src/simcore_service_api_server/api/routes/solvers_jobs.py @@ -12,10 +12,8 @@ from models_library.projects import ProjectID from models_library.projects_nodes_io import NodeID from pydantic.types import PositiveInt -from simcore_service_api_server.exceptions.backend_errors import ( - ProjectAlreadyStartedError, -) +from ...exceptions.backend_errors import ProjectAlreadyStartedError from ...exceptions.service_errors_utils import DEFAULT_BACKEND_SERVICE_STATUS_CODES from ...models.basic_types import VersionStr from ...models.schemas.errors import ErrorGet @@ -199,7 +197,9 @@ async def start_job( user_id: Annotated[PositiveInt, Depends(get_current_user_id)], director2_api: Annotated[DirectorV2Api, Depends(get_api_client(DirectorV2Api))], webserver_api: Annotated[AuthSession, Depends(get_webserver_session)], - cluster_id: Annotated[ClusterID | None, Query(deprecated=True)] = None, + cluster_id: Annotated[ # pytest: disable=unused-argument # noqa: ARG001 + ClusterID | None, Query(deprecated=True) + ] = None, ): job_name = _compose_job_resource_name(solver_key, version, job_id) _logger.debug("Start Job '%s'", job_name) diff --git a/services/api-server/src/simcore_service_api_server/api/routes/studies_jobs.py b/services/api-server/src/simcore_service_api_server/api/routes/studies_jobs.py index e245cd1cadf..8d23def5c0b 100644 --- a/services/api-server/src/simcore_service_api_server/api/routes/studies_jobs.py +++ b/services/api-server/src/simcore_service_api_server/api/routes/studies_jobs.py @@ -15,14 +15,11 @@ from models_library.projects_nodes_io import NodeID from pydantic import PositiveInt from servicelib.logging_utils import log_context -from simcore_service_api_server.api.routes.solvers_jobs import JOBS_STATUS_CODES -from simcore_service_api_server.exceptions.backend_errors import ( - ProjectAlreadyStartedError, -) from ...api.dependencies.authentication import get_current_user_id from ...api.dependencies.services import get_api_client from ...api.dependencies.webserver import get_webserver_session +from ...exceptions.backend_errors import ProjectAlreadyStartedError from ...models.pagination import Page, PaginationParams from ...models.schemas.errors import ErrorGet from ...models.schemas.jobs import ( @@ -53,6 +50,7 @@ from ..dependencies.application import get_reverse_url_mapper from ._common import API_SERVER_DEV_FEATURES_ENABLED from ._constants import FMSG_CHANGELOG_CHANGED_IN_VERSION, FMSG_CHANGELOG_NEW_IN_VERSION +from .solvers_jobs import JOBS_STATUS_CODES _logger = logging.getLogger(__name__) router = APIRouter() @@ -222,7 +220,9 @@ async def start_study_job( user_id: Annotated[PositiveInt, Depends(get_current_user_id)], webserver_api: Annotated[AuthSession, Depends(get_webserver_session)], director2_api: Annotated[DirectorV2Api, Depends(get_api_client(DirectorV2Api))], - cluster_id: Annotated[ClusterID | None, Query(deprecated=True)] = None, + cluster_id: Annotated[ # pylint: disable=unused-argument # noqa: ARG001 + ClusterID | None, Query(deprecated=True) + ] = None, ): job_name = _compose_job_resource_name(study_id, job_id) with log_context(_logger, logging.DEBUG, f"Starting Job '{job_name}'"):