(ctx context.Context, platform constant.TaskPlatform, taskChannelM map[int][]string, taskM map[string]*model.Task)
| 13 | ) |
| 14 | |
| 15 | func 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 | |
| 24 | func 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))) |
no test coverage detected