Function
buildBatchOperateTaskID
(taskID string, agentID uint)
Source from the content-addressed store, hash-verified
| 573 | } |
| 574 | |
| 575 | func 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 | |
| 583 | func batchOperateSkipMessage(operate constant.AppOperate, status string) string { |
| 584 | switch status { |
Tested by
no test coverage detected