mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-16 10:40:38 +08:00
fix: issue with cron workflows not working and updated workflow executions to include the version of the workflow template they ran.
This commit is contained in:
@@ -51,7 +51,13 @@ func (c *Client) UpdateCronWorkflow(namespace string, name string, cronWorkflow
|
||||
argoCronWorkflow.Spec.SuccessfulJobsHistoryLimit = cronWorkflow.SuccessfulJobsHistoryLimit
|
||||
argoCronWorkflow.Spec.FailedJobsHistoryLimit = cronWorkflow.FailedJobsHistoryLimit
|
||||
//UX prevents multiple workflows
|
||||
workflows, err := UnmarshalWorkflows([]byte(workflowTemplate.Manifest), true)
|
||||
|
||||
manifestBytes, err := workflowTemplate.GetWorkflowManifestBytes()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
workflows, err := UnmarshalWorkflows(manifestBytes, true)
|
||||
if err != nil {
|
||||
log.WithFields(log.Fields{
|
||||
"Namespace": namespace,
|
||||
|
Reference in New Issue
Block a user