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-26726: Freeze Config prior to running the quantum #78

Merged
merged 4 commits into from Sep 24, 2020
Merged

Conversation

timj
Copy link
Member

@timj timj commented Sep 21, 2020

No description provided.

@@ -246,8 +249,7 @@ def runQuantum(self, task, quantum, taskDef, butler):
butlerQC = ButlerQuantumContext(butler, quantum)

# Get the input and output references for the task
connectionInstance = task.config.connections.ConnectionsClass(config=task.config)
inputRefs, outputRefs = connectionInstance.buildDatasetRefs(quantum)
inputRefs, outputRefs = taskDef.connections.buildDatasetRefs(quantum)
Copy link
Member Author

Choose a reason for hiding this comment

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

@andy-slac I'm not sure if this change is controversial? We have access to the TaskDef so in theory we don't need to recreate the connections object here. I assume the main worry is that by this point the TaskDef and Task can be out of sync somehow?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I am not sure now where the original code comes from, but this change looks OK to me.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think I remember that existing prior to TaskDefs carrying around a connections instance, and think it never got cleaned up. This change looks fine.

@timj timj merged commit 57a37cc into master Sep 24, 2020
@timj timj deleted the tickets/DM-26726 branch September 24, 2020 03:48
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

3 participants