mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-30 08:16:23 +08:00
feat: added metrics to workflow_executions database related code
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user