materialsproject / fireworks

The Fireworks Workflow Management Repo.
https://materialsproject.github.io/fireworks
Other
361 stars 185 forks source link

ENH: Joint queries on Fireworks and Workflows from command line #414

Closed jotelha closed 4 years ago

jotelha commented 4 years ago

This is another loose suggestion for extension: Often, I want to quickly submit a joint query between Fireworks and Workflows, i.e. get an overview on all FIZZLED Fireworks in a particular workflow. Here is an extension to the Launchpad and its command line interface to avoid the "detour" via direct MongoDB queries. One particular consideration for discussion would be how to distinguish between CLI options aimed at selecting Fireworks query and such aimed at selecting Workflows. I chose options prefixed with 'fw' and 'wf' respectively here, i.e.

lpad get_fws_in_wflows -wfi 38710 -fwq '{"state":"FIZZLED","name":{"$regex":"gmx_mdrun$"}}' -d all

would yield all Fireworks matching the 'fwq' query within the Workflow identified by 'wfi'.

computron commented 4 years ago

This will be useful, thanks!