Exemple #1
0
 /**
  * Cancel a delayed job.
  *
  * @param array $tokenAndTimstamp
  *            the UUID of delayed job and timestamp
  * @param string $queue
  *            The name of the queue to the job placed in.
  * @param string $class
  *            The name of the class that contains the code to execute the job.
  * @param array $args
  *            Any optional arguments that should be passed when the job is executed.
  * @param DateTime|int $at
  *            Instance of DateTime or UNIX timestamp (optinal).
  *
  * @return boolean whether the delayed job is canceled
  */
 public function cancelDelayedJob($tokenAndTimstamp, $queue, $class, $args = array())
 {
     return ResqueScheduler::removeDelayedJob($tokenAndTimstamp, $queue, $class, $args);
 }