/**
  * Schedule recalculation of completenesses for all products
  * of a channel
  *
  * @param ChannelInterface $channel
  */
 public function scheduleForChannel(ChannelInterface $channel)
 {
     if ($channel->getId()) {
         $deletedLocaleIds = $this->channelRepository->getDeletedLocaleIdsForChannel($channel);
         foreach ($deletedLocaleIds as $deletedLocaleId) {
             $deletedLocale = $this->localeRepository->find($deletedLocaleId);
             $this->generator->scheduleForChannelAndLocale($channel, $deletedLocale);
         }
     }
 }