Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-30784: Fixes to transfer_from to correctly filter out missing datasets and register dataset types #538

Merged
merged 7 commits into from Jun 18, 2021

Conversation

timj
Copy link
Member

@timj timj commented Jun 17, 2021

Turns out that I had forgotten a rather critical filter and was transferring all datasets, even those that had not file artifact. This is now fixed. This PR also adds dataset type registration.

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

timj added 2 commits June 16, 2021 17:26
The file might be missing now for some unknown reason or the
user may have deleted the dataset but retained the registry record.
It's best to report it as predicted rather than refuse to show anything.

To support dynamic prediction we need a fully expanded dataId.
This requires we move to an explicit transaction around the dataset
import loop and datastore artifact transfer.
Copy link
Contributor

@andy-slac andy-slac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, couple of minor comments/questions.

python/lsst/daf/butler/datastores/fileDatastore.py Outdated Show resolved Hide resolved
python/lsst/daf/butler/_butler.py Outdated Show resolved Hide resolved
python/lsst/daf/butler/_butler.py Show resolved Hide resolved
timj added 5 commits June 17, 2021 15:59
Execution butler workflow may have only partially completed.
Composites may not have written all components.
We can only test for the existence of any of the files and not
all the expected files since we don't know whether a composite
will always write out all components.
@timj timj merged commit f83e480 into master Jun 18, 2021
@timj timj deleted the tickets/DM-30784 branch June 18, 2021 16:33
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.

None yet

2 participants