(ctx context.Context, platform constant.TaskPlatform, taskChannelM map[int][]string, taskM map[string]*model.Task)
| 19 | ) |
| 20 | |
| 21 | func UpdateVideoTaskAll(ctx context.Context, platform constant.TaskPlatform, taskChannelM map[int][]string, taskM map[string]*model.Task) error { |
| 22 | for channelId, taskIds := range taskChannelM { |
| 23 | if err := updateVideoTaskAll(ctx, platform, channelId, taskIds, taskM); err != nil { |
| 24 | logger.LogError(ctx, fmt.Sprintf("Channel #%d failed to update video async tasks: %s", channelId, err.Error())) |
| 25 | } |
| 26 | } |
| 27 | return nil |
| 28 | } |
| 29 | |
| 30 | func updateVideoTaskAll(ctx context.Context, platform constant.TaskPlatform, channelId int, taskIds []string, taskM map[string]*model.Task) error { |
| 31 | logger.LogInfo(ctx, fmt.Sprintf("Channel #%d pending video tasks: %d", channelId, len(taskIds))) |
nothing calls this directly
no test coverage detected