-
Notifications
You must be signed in to change notification settings - Fork 11
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
How to add metadata to flows
docs?
#124
Comments
Hi @janosh, indeed there is no way of setting the metadata in the flow document, thanks for reporting that.
Adding the metadata attribute to An alternative solution could be to to pass a What do you think? |
Thanks @janosh for opening this issue. Indeed, as @gpetretto mentioned, it is currently not possible. Concerning point 1., I propose to include @utf in the discussion. Maybe there is a need (or at least a wish) to have flow metadata. Not sure how (and how easy it would be) this could be added to jobflow itself in the first place and "passed down" to jobflow-remote. The tricky point is that in jobflow, the Flow exists at definition time but not anymore at execution (nor in the database). I think this was done in order to avoid duplication of outputs of jobs in outputs of flows (if they existed). If there is a strong push towards that, maybe we could have a call altogether to discuss options ? |
I am not sure that it would be particularly tricky to handle this in jobflow and jobflow-remote. Adding the |
thanks for the quick replies! @gpetretto 1 - 4 are excellent points and should be handled intuitively and without pitfalls. i should have formulated my issue more like an RFC (which is what this is now anyway 😄). i tried the
that's correct. though in principle, i think both are useful. but adding metadata to the output seems like a pure
@davidwaroquiers i could imagine @utf would prefer to discuss on GitHub but happy to do call and to flex to your schedules if i'm mistaken! |
just to get everyone's temperature, is the preference here to go with the clunky but explicit option of adding a |
Hi @janosh, we agreed that it would be better to add the |
@gpetretto thanks for the update, i like those decisions. i'll get on it |
@gpetretto @utf @davidwaroquiers i have a first pass in materialsproject/jobflow#679. any feedback welcome! |
There currently appears to be no way of adding metadata like material IDs, formulas, structure provenance and the like to documents added into the
flows
collection.i think it would make sense to e.g. look for a metadata attribute on a
jobflow.Flow
and if found, add that to theflow_doc
prior to DB insertion inJobController.add_flow
:jobflow-remote/src/jobflow_remote/jobs/jobcontroller.py
Line 2591 in 967e7c5
happy to submit a PR for this if there's interest
The text was updated successfully, but these errors were encountered: