MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / buildBatchUpgradeTaskID

Function buildBatchUpgradeTaskID

agent/app/service/agents.go:559–565  ·  view source on GitHub ↗
(taskID string, appInstallID uint)

Source from the content-addressed store, hash-verified

557}
558
559func buildBatchUpgradeTaskID(taskID string, appInstallID uint) string {
560 taskID = strings.TrimSpace(taskID)
561 if taskID == "" {
562 taskID = fmt.Sprintf("batch-upgrade-%d-%d", appInstallID, time.Now().UnixNano())
563 }
564 return fmt.Sprintf("%s-%d", taskID, appInstallID)
565}
566
567func buildBatchSkillInstallTaskID(taskID string, agentID uint) string {
568 taskID = strings.TrimSpace(taskID)

Callers 1

buildBatchUpgradePlansFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected