/**
  * @param RateLimitEvent $event
  */
 public function onRateLimit(RateLimitEvent $event)
 {
     $payload = [$event->getScraper()->getId(), $event->getUrl()];
     $this->queueManager->add(ScrapeUrlExecutor::NAME, $payload, $event->getRetryDate()->getTimestamp() - time());
 }
 /**
  * @param RateLimitEvent $event
  */
 public function onRateLimitReached(RateLimitEvent $event)
 {
     $seconds = $event->getRetryDate()->getTimestamp() - time();
     $this->logger->debug(sprintf('Rate limit reached, try again after %d seconds', $seconds));
 }
 /**
  * @param RateLimitEvent $event
  */
 public function onRateLimitReached(RateLimitEvent $event)
 {
     $seconds = $event->getRetryDate()->getTimestamp() - time();
     $this->output->writeln(sprintf('Rate limit reached, try again after <info>%d</info> seconds', $seconds));
 }