public async Task RegisterJobAllRssScheduler() { var op = Operation.Begin("Registering RSS Job"); Log.Information("Getting list Chat ID"); var rssSettings = await _rssService.GetAllRssSettingsAsync(); var listChatId = rssSettings.Select(setting => setting.ChatId).Distinct(); await listChatId.ForEachAsync( degreeOfParallel : 4, body : async chatId => { await RegisterRssFeedByChatId(chatId); } ); op.Complete(); }