package dag

import (
	flowentity "github.com/tidbcloud/fastflow/pkg/entity"

	"github.com/tidbcloud/tidb-management-service/tidb-mgmt-service/domain/constant"
	"github.com/tidbcloud/tidb-management-service/utilities/workflow"
)

func CreateNextGenClusterDag() *flowentity.Dag {
	dag := &flowentity.Dag{
		BaseInfo: flowentity.BaseInfo{
			ID: constant.DagNextGenCreateCluster,
		},
		Name:   constant.DagNextGenCreateCluster,
		Status: flowentity.DagStatusNormal,
		Vars: map[string]flowentity.DagVar{
			constant.KeyRequest:     {},
			workflow.KeyTraceId:     {},
			workflow.KeySpanName:    {},
			workflow.KeyRequestMeta: {},
		},
		Tasks: []flowentity.Task{
			{
				ID:         constant.TaskNextGenGlobalCreateCluster,
				ActionName: constant.TaskNextGenGlobalCreateCluster,
			},
		},
	}

	return dag
}
