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

tickets/DM-14819 #79

Merged
merged 2 commits into from Jan 19, 2019
Merged

tickets/DM-14819 #79

merged 2 commits into from Jan 19, 2019

Conversation

natelust
Copy link
Contributor

Allow DatasetType to be marked for later load

Although DatasetTypes need to be known prior to task execution to
build a QuantumGraph, not all data products need to be loaded before
task execution. This change introduces a way to indicate a
DatasetType will be manually read in and handled by a task.

manualLoad = pexConfig.Field(dtype=bool,
default=False,
optional=True,
doc=("If this is set to True, the class intendes to load "
Copy link
Member

Choose a reason for hiding this comment

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

Typo: intendes.

@@ -337,6 +337,7 @@ def _dataRefKey(dataRef):
for key in dataRefs.keys():
if dataRefs[key].id is not None:
dataRefs[key] = self.registry.getDataset(dataRefs[key].id)
self.registry.expandDataId(dataRefs[key].dataId, region=True)
Copy link
Member

Choose a reason for hiding this comment

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

Should make this one-liner a separate commit, with a message like:

Ensure metadata and regions are expanded in QuantumGraph data IDs.

This is a workaround for DM-17231.

Make sure the QuantumGraph and DataIds have their metadata and
regions expanded. This is a workaround for DM-17231.
Although DatasetTypes need to be known prior to task execution to
build a QuantumGraph, not all data products need to be loaded before
task execution. This change introduces a way to indicate a
DatasetType will be manually read in and handled by a task.
@natelust natelust merged commit 89d9b8f into master Jan 19, 2019
@timj timj deleted the tickets/DM-14819 branch April 13, 2022 22:19
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