script

package
v0.0.0-...-d592252 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TASK_NAME_IMPORT_SCRIPT     = "Import script for tenant"
	MYSQL_CONNECTOR             = "mysql.connector"
	PARAM_TENANT_NAME           = "tenantName"
	PARAM_IMPORT_ALWAYS_SUCCESS = "alwaysSuccess"
	PARAM_PARALLEL_EXECUTE      = "parallelExecute"
)

Variables

This section is empty.

Functions

func NewImportScriptForTenantNode

func NewImportScriptForTenantNode(alwaysSuccess bool) *task.Node

func NewParallelImportScriptForTenantNode

func NewParallelImportScriptForTenantNode(executeAgents []meta.AgentInfo, alwaysSuccess bool) *task.Node

alwaysSuccess: if true, the task will always return success, even if the import process fails alwaysSuccess should be true only in take over and upgrade.

Types

type ImportScriptForTenantTask

type ImportScriptForTenantTask struct {
	task.Task
	// contains filtered or unexported fields
}

func (*ImportScriptForTenantTask) CheckEnv

func (t *ImportScriptForTenantTask) CheckEnv() error

func (*ImportScriptForTenantTask) Execute

func (t *ImportScriptForTenantTask) Execute() error

If the python environment is not installed, the task will do nothing

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL