/**
  * {@inheritDoc}
  */
 public function kick($max)
 {
     if ($this->dispatcher) {
         $this->dispatcher->dispatch(CommandEvent::KICK, new CommandEvent($this, ['max' => $max]));
     }
     return $this->pheanstalk->kick($max);
 }
 /**
  * Puts a job into a 'buried' state, revived only by 'kick' command.
  *
  * @param string $action
  * @param int    $max
  *
  * @return int The number of kicked jobs
  */
 public function kick($action, $max)
 {
     $this->pheanstalk->useTube($action);
     $kicked = $this->pheanstalk->kick($max);
     $this->logger->debug(sprintf('Kicked %d "%s" jobs back onto the ready queue', $kicked, $action));
     return $kicked;
 }