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

Add metadata kwarg to AlchemiscaleClient.create_network #290

Open
dotsdl opened this issue Aug 16, 2024 · 0 comments
Open

Add metadata kwarg to AlchemiscaleClient.create_network #290

dotsdl opened this issue Aug 16, 2024 · 0 comments

Comments

@dotsdl
Copy link
Member

dotsdl commented Aug 16, 2024

Currently, the only submittable artifacts alchemiscale supports from users are AlchemicalNetworks. This has worked well, but some users would like to be able to submit custom metadata associated with their AlchemicalNetworks that can be used for processing results downstream without needing an external system to retain this information.

To support this, we could add a metadata kwarg to AlchemiscaleClient.create_network that takes in a string as input. This string could contain any information a user believes they need associated with their submitted AlchemicalNetwork on initial submission, with perhaps server-side size/length limits imposed to keep these from being arbitrarily large. Restricting the data type to strings puts the burden on the user to serialize this data in a form they can deserialize before it hits the client, and avoids forcing them to use a particular data model, e.g. pydantic.

This string could be stored in either the state store or the object store. The state store would give faster retrieval, but the object store is more suitable for potentially large objects.

There may be other possible solutions with benefits/drawbacks. We will collect these here before proceeding to an implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant