/** * @param \Datetime|int $at * @param string $handler * @param array $args * @param bool $retry */ public function execute($at, $handler, $args = [], $retry = true) { $handler = $this->nameGenerator->generate($handler); // need to pass microtime(true) format $at = $at instanceof \DateTime ? $at->getTimestamp() . '.000' : $at . '.000'; $this->client->schedule($at, $handler, $args, $retry, $this->queue); }
public function execute($handler, $args, $priority = 'md', $retry = true) { $handler = $this->nameGenerator->generate($handler); $this->client->push($handler, $args, $retry, $this->queue); }