Skip to content

Conversation

kfindeisen
Copy link
Member

@kfindeisen kfindeisen commented Dec 2, 2022

This PR adds code for removing shared (usually init-output) datasets from an output run, making it possible to reuse runs for multiple groups and detectors. Actually implementing reuse is deferred to DM-36586.

The deletion is a stopgap until DM-36162 gives us better tools for handling preexisting or conflicting datasets, so the new code is all written on the assumption that it will be removed later.

@kfindeisen kfindeisen force-pushed the tickets/DM-37068 branch 3 times, most recently from ac1b0c3 to dfe302a Compare December 5, 2022 21:18
@kfindeisen kfindeisen requested a review from parejkoj December 5, 2022 23:10
Copy link
Contributor

@parejkoj parejkoj left a comment

Choose a reason for hiding this comment

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

Two small suggestions

Caching problems only appeared on Google. While future architectural
changes (i.e., using multiple Butlers for the same repo) might bring
back caching problems, it's better to try to write such a test when
we can confirm it reproduces the problem.
This is a workaround for not being able to handle pre-existing datasets
that don't depend on exposure-detector in a coherent fashion. Removing
non-detector datasets allows the same run to be reused without
collisions either in the local or central repos.
This change makes it safe to have a single global run for the entire
MiddlewareInterface class.
@kfindeisen kfindeisen merged commit 23f02a4 into main Dec 14, 2022
@kfindeisen kfindeisen deleted the tickets/DM-37068 branch December 14, 2022 19:32
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.

2 participants