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

Function UpdateVideoTaskAll

controller/task_video.go:15–22  ·  view source on GitHub ↗
(ctx context.Context, platform constant.TaskPlatform, taskChannelM map[int][]string, taskM map[string]*model.Task)

Source from the content-addressed store, hash-verified

13)
14
15func UpdateVideoTaskAll(ctx context.Context, platform constant.TaskPlatform, taskChannelM map[int][]string, taskM map[string]*model.Task) error {
16 for channelId, taskIds := range taskChannelM {
17 if err := updateVideoTaskAll(ctx, platform, channelId, taskIds, taskM); err != nil {
18 common.LogError(ctx, fmt.Sprintf("Channel #%d failed to update video async tasks: %s", channelId, err.Error()))
19 }
20 }
21 return nil
22}
23
24func updateVideoTaskAll(ctx context.Context, platform constant.TaskPlatform, channelId int, taskIds []string, taskM map[string]*model.Task) error {
25 common.LogInfo(ctx, fmt.Sprintf("Channel #%d pending video tasks: %d", channelId, len(taskIds)))

Callers 1

UpdateTaskByPlatformFunction · 0.85

Calls 3

LogErrorFunction · 0.92
updateVideoTaskAllFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected