MCPcopy Index your code
hub / github.com/aiprodcoder/MIXAPI / UpdateSunoTaskAll

Function UpdateSunoTaskAll

controller/task.go:85–93  ·  view source on GitHub ↗
(ctx context.Context, taskChannelM map[int][]string, taskM map[string]*model.Task)

Source from the content-addressed store, hash-verified

83}
84
85func UpdateSunoTaskAll(ctx context.Context, taskChannelM map[int][]string, taskM map[string]*model.Task) error {
86 for channelId, taskIds := range taskChannelM {
87 err := updateSunoTaskAll(ctx, channelId, taskIds, taskM)
88 if err != nil {
89 common.LogError(ctx, fmt.Sprintf("渠道 #%d 更新异步任务失败: %d", channelId, err.Error()))
90 }
91 }
92 return nil
93}
94
95func updateSunoTaskAll(ctx context.Context, channelId int, taskIds []string, taskM map[string]*model.Task) error {
96 common.LogInfo(ctx, fmt.Sprintf("渠道 #%d 未完成的任务有: %d", channelId, len(taskIds)))

Callers 1

UpdateTaskByPlatformFunction · 0.85

Calls 3

LogErrorFunction · 0.92
updateSunoTaskAllFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected