public function clearSchedule(array $queueNames = null, \DateTimeInterface $start = null, \DateTimeInterface $end = null) { if ($queueNames === null) { $queueNames = [null]; } foreach ($queueNames as $queueName) { $this->evalScript('clear_schedule', [$this->namespace, $queueName, $start ? $start->getTimestamp() : '-inf', $end ? $end->getTimestamp() : '+inf']); } }