Open tchiotludo opened 10 months ago
In the integration world (EAI/ESB/SOA) we refere at this by the name of correlation identifier (correlationId) as it allows to correlate multiple messages (here executions) together.
The user's main problem is the heavy reliance on labels
. To analyze the state of workflows and task run metrics, some users filter those metrics based on Execution labels, which can be complex.
"Our use case is to build parametrized flows orchestrating different processes with steps like input data validation via provided schema, modifying the data, and sending the data to an external system. Such flow is parametrized by inputs to use different validation schemas, perform different payload modifications, and use different connection parameters. We then use
labels
to differentiate thosesets of parameters
."
The reference key can be described as "a label identifying particular processed input data". Such key is identified prior feeding the data to Kestra. It is often a "business-relevant ID" contained in the data or a concatenated value from multiple sources.
It could be configured manually by the user in the flow definition.
The idea of this reference field is to create a surrogate key comprised of multiple fields for easier filtering of relevant operational data to answer questions such as "What are top 10 failing executions in the past 1h containing label env:prod grouped by label x and flowId => Which PROD flows of a "type" specified by the given label x are most troublesome?"
Since, this is been pushed back in priorities ... anybody have an example work around they use to achieve similar for the time been?
@damienkilgannon you can leverage the label task and filter executions by that label, e.g.:
- id: label
type: io.kestra.plugin.core.execution.Labels
labels:
url: "{{ outputs.some_task.value }}"
see discussion here
We could add a simple reference on the execution, each subflow, trigger that start from that flow will copy the reference, and we need to have this field visible on the list and to allow search on that one.