Skip to content
Snippets Groups Projects
Commit d3049246 authored by Robert Rosca's avatar Robert Rosca
Browse files

Return None if resolved path parents not for

known repository
parent aa9f03f3
No related branches found
No related tags found
1 merge request!670Check for transfer conditional on resolved symlink path
This commit is part of merge request !646. Comments created here will be created in the context of that merge request.
......@@ -530,7 +530,7 @@ async def wait_on_transfer(
run_dir: Path,
max_tries: int = 300,
sleep_completion: int = 10,
) -> List[str]:
) -> Optional[List[str]]:
"""Query MyMDC to get run migration status.
This coro queries MyMDC to get the storage spaces where the data is
......@@ -594,13 +594,14 @@ async def wait_on_transfer(
required_repository = "XFEL_GPFS_OFFLINE"
else:
logging.warning(
f"Proposal {proposal} run {run} resolved path is not relative to"
f"`/pnfs/xfel.eu/exfel` or `/gpfs/exfel/d`: {run_dir}"
f"Proposal {proposal} run {run} resolved path is not relative "
f"to `/pnfs/xfel.eu/exfel` or `/gpfs/exfel/d`: {run_dir=}"
)
return
logging.debug(f"{required_repository=}")
if required_repositoryis not None and any(required_repository in r for r in repositories):
if any(required_repository in r for r in repositories):
return repositories
logging.info(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment