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 CreateDedicatedClusterDag() *flowentity.Dag {
	dag := &flowentity.Dag{
		BaseInfo: flowentity.BaseInfo{
			ID: constant.DagDedicatedCreateCluster,
		},
		Name:   constant.DagDedicatedCreateCluster,
		Status: flowentity.DagStatusNormal,
		Vars: map[string]flowentity.DagVar{
			constant.KeyRequest:     {},
			workflow.KeyTraceId:     {},
			workflow.KeySpanName:    {},
			workflow.KeyRequestMeta: {},
		},
		Tasks: []flowentity.Task{
			{
				ID:         constant.TaskDedicatedGlobalCreateCluster,
				ActionName: constant.TaskDedicatedGlobalCreateCluster,
			},
		},
	}

	return dag
}
