Skip to content

Support multiple destination butlers#35

Closed
ktlim wants to merge 4 commits intolsst-dm:mainfrom
wyang007:tickets/DM-51891
Closed

Support multiple destination butlers#35
ktlim wants to merge 4 commits intolsst-dm:mainfrom
wyang007:tickets/DM-51891

Conversation

@ktlim
Copy link
Copy Markdown
Contributor

@ktlim ktlim commented Aug 27, 2025

No description provided.

"torepo",
type=str,
help="Repository to which data is transferred.",
"torepos",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I would keep the name but add nargs="+" and not use comma_separated_list.

key="arcBackup",
value="SLAC_RAW_DISK_BKUP:need",
)
self.did_client.set_metadata(
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Please make this a separate commit.

Comment on lines +729 to +731
for torepo in config.torepos:
dest_butler = Butler(torepo, writeable=True)
dest_butlers.append(dest_butler)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

More compact is:

Suggested change
for torepo in config.torepos:
dest_butler = Butler(torepo, writeable=True)
dest_butlers.append(dest_butler)
dest_butlers = [Butler(torepo, writeable=True) for torepo in config.torepos]

This should also solve the immediate test failure.

@wyang007
Copy link
Copy Markdown

close and remake in the repo itself.

@wyang007 wyang007 closed this Aug 29, 2025
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