Skip to content

DM-51139: Support separate read and write butlers in Prompt Processing #324

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

kfindeisen
Copy link
Member

@kfindeisen kfindeisen commented Jun 24, 2025

This PR changes the repo configuration to use a two-tier system, with an optional read-only repo to reduce load on the write repo. It also removes the old "calib repo" terminology.

For now, read_central_butler and write_central_butler are the same
object, but splitting the references makes the usage patterns much
clearer.
This allows pipeline inputs and outputs to go to different repos,
spreading out server load.
All Butler operations run on explicit collections because they need
*different* collections, so the requirement makes no sense.
The repos are CENTRAL_REPO and READ_CENTRAL_REPO, and the latter is
optional.
@@ -111,10 +111,7 @@ def get_central_butler(central_repo: str, instrument_class: str):
"""
# TODO: how much overhead do we take on from asking the central repo about
# the instrument instead of handling it internally?
Copy link
Collaborator

Choose a reason for hiding this comment

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

The two lines of comments above can be removed too

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