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

Function buildBatchOperateTaskID

agent/app/service/agents.go:575–581  ·  view source on GitHub ↗
(taskID string, agentID uint)

Source from the content-addressed store, hash-verified

573}
574
575func buildBatchOperateTaskID(taskID string, agentID uint) string {
576 taskID = strings.TrimSpace(taskID)
577 if taskID == "" {
578 taskID = fmt.Sprintf("batch-operate-%d-%d", agentID, time.Now().UnixNano())
579 }
580 return fmt.Sprintf("%s-%d", taskID, agentID)
581}
582
583func batchOperateSkipMessage(operate constant.AppOperate, status string) string {
584 switch status {

Callers 1

BatchOperateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected