feat: added metrics to workflow_executions database related code

This commit is contained in:
Andrey Melnikov
2020-11-16 12:08:17 -08:00
parent d3af2059d4
commit 212ef7c0de
3 changed files with 25 additions and 1 deletions

View File

@@ -854,6 +854,7 @@ func (c *Client) createWorkflowExecutionDB(namespace string, workflowExecution *
"parameters": string(parametersJSON),
"is_archived": false,
"labels": workflowExecution.Labels,
"metrics": workflowExecution.Metrics,
}).
Suffix("RETURNING id").
RunWith(c.DB).
@@ -917,6 +918,7 @@ func (c *Client) CronStartWorkflowExecutionStatisticInsert(namespace, uid string
"cron_workflow_id": cronWorkflow.ID,
"parameters": string(parametersJSON),
"labels": cronWorkflow.Labels,
"metrics": types.JSONLabels{},
}).
Suffix("RETURNING id").
RunWith(c.DB).