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-30702 Add metadata to QuantumGraph #127

Merged
merged 2 commits into from Jun 16, 2021
Merged

Conversation

natelust
Copy link
Contributor

Checklist

Copy link
Collaborator

@andy-slac andy-slac left a comment

Choose a reason for hiding this comment

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

Looks good, but check my comments, I think we may want few extra things in metadata.

Comment on lines 543 to 545
metadata = {"input": args.input, "output": args.output, "butler_config": args.butler_config,
"output_run": args.output_run, "extend_run": args.extend_run,
"skip_existing": args.skip_existing}
Copy link
Collaborator

Choose a reason for hiding this comment

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

On JIRA @timj also asked about few other items: time of creation, user name, data query (should be in args.data_query). I am somewhat concerned that butler_config may point to some temporary location which could disappear, should we be storing registry database URL just in case?

Copy link
Member

Choose a reason for hiding this comment

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

I think the butler URI for the repository itself is probably better than the ButlerConfig (or at least we should definitely include the butler URI regardless even if we think we also need the config itself).

Copy link
Collaborator

@andy-slac andy-slac Jun 15, 2021

Choose a reason for hiding this comment

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

args.butler_config here is just a command line argument which is a path/URL, not the whole ButlerConfig.

Copy link
Member

Choose a reason for hiding this comment

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

Okay. That's not a good name for it then.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Indeed, historically it comes from --butler-config command line option which by default was translated to butler_config attribute name by argparse (which we don't use any more).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I changed the key in the metadata to say "butler_argument" to better reflect that it was what was passed on the command line, and side step the name butler_config

Record some command line options with the QuantumGraph metadata
@natelust natelust merged commit c68f6de into master Jun 16, 2021
@natelust natelust deleted the tickets/DM-30702 branch June 16, 2021 19:04
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