I can pass a custom labels file to a running Cromwell server via cURL, but am unsure how to later query for the values of a specified key passed at runtime.
Could someone enlighten me?
Hey @erichpeterson as of cromwell v27, labels are a part of the workflow metadata. Please let us know if there are other features related to custom labels that would interest you. Thanks!
actual you can only query for:
This endpoint allows for querying workflows based on the following criteria:
start (start datetime with mandatory offset)
end (end datetime with mandatory offset)
page (page of results)
pagesize (# of results per page)
(taken from docs here: https://github.com/broadinstitute/cromwell/tree/25_hotfix#get-apiworkflowsversionquery)
Maybe we can ask them to add the function in the next Version.
If this is something you'd like I'd encourage you to file an issue
The API endpoint you are referring to is the query endpoint: /api/workflows/:version/query
I am interested in getting info from the metadata endpoint: /api/workflows/:version/:id/metadata
Hi @erichpeterson - based on your last comment I'm not sure what you're after here. If you were to imagine that the behavior you were looking for existed, could you give an example of how that interaction would look?
Hi @jgentry ,
Sorry for the late reply.
So, what I'm thinking is given that a custom label was passed during execution of the workflow (https://github.com/broadinstitute/cromwell#custom-labels-file), I want to somehow retrieve the all the key/value pairs.
I was thinking this might be best output with all of the other metadata that is output via the metadata endpoint: /api/workflows/:version/:id/metadata.