Skip to content

resilient location: fall back to SAM lookup if file not found on resi…#28

Merged
oksuzian merged 2 commits intoMu2e:mainfrom
oksuzian:cleanup-version-info
Feb 26, 2026
Merged

resilient location: fall back to SAM lookup if file not found on resi…#28
oksuzian merged 2 commits intoMu2e:mainfrom
oksuzian:cleanup-version-info

Conversation

@oksuzian
Copy link
Copy Markdown
Collaborator

…lient dCache

Mirrors the stash fallback logic: check os.path.exists() first, and if the file is not on resilient, fall through to SAM-based location lookup.

…lient dCache

Mirrors the stash fallback logic: check os.path.exists() first, and if the
file is not on resilient, fall through to SAM-based location lookup.
os.path.exists() is unreliable for resilient dCache — POSIX is not available
on grid worker nodes. Use gfal2 Python bindings to stat the xrootd URL,
which works on both interactive nodes and grid. Falls back to SAM lookup
if the file is not found or gfal2 fails.
@oksuzian oksuzian merged commit 7614b86 into Mu2e:main Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant