diff --git a/src/diracx/routers/job_manager/sandboxes.py b/src/diracx/routers/job_manager/sandboxes.py index 8b769500..814579bc 100644 --- a/src/diracx/routers/job_manager/sandboxes.py +++ b/src/diracx/routers/job_manager/sandboxes.py @@ -22,7 +22,6 @@ s3_object_exists, ) from diracx.core.settings import ServiceSettingsBase -from diracx.db.sql.jobs.db import JobDB if TYPE_CHECKING: from types_aiobotocore_s3.client import S3Client @@ -206,10 +205,8 @@ async def get_sandbox_file( @router.get("/jobs/{job_id}/sandbox") async def get_job_sandboxes( - job_db: JobDB, job_id: int, sandbox_metadata_db: SandboxMetadataDB, - user_info: Annotated[AuthorizedUserInfo, Depends(verify_dirac_access_token)], ) -> dict[Any, Any]: """Get input and output sandboxes of given job id at the same time.""" # TODO: check that user as created the job or is admin @@ -220,11 +217,9 @@ async def get_job_sandboxes( @router.get("/jobs/{job_id}/sandbox/{sandbox_type}") async def get_job_sandbox( - job_db: JobDB, job_id: int, sandbox_metadata_db: SandboxMetadataDB, sandbox_type: str, - user_info: Annotated[AuthorizedUserInfo, Depends(verify_dirac_access_token)], ) -> dict[Any, Any]: """Get input or output sandbox from given job""" # TODO: check that user as created the job or is admin @@ -234,13 +229,11 @@ async def get_job_sandbox( @router.patch("/jobs/{job_id}/sandbox/output") async def assign_sandbox( - job_db: JobDB, job_id: int, pfn: str, sandbox_metadata_db: SandboxMetadataDB, sb_type: str, se_name: str, - user_info: Annotated[AuthorizedUserInfo, Depends(verify_dirac_access_token)], ) -> None: # TODO: check that user as created the job or is admin assert (