Beispiel #1
0
 /**
  * Handle delayed items for the next scheduled timestamp.
  *
  * Searches for any items that are due to be scheduled in Resque
  * and adds them to the appropriate job queue in Resque.
  *
  * @param DateTime|int $timestamp Search for any items up to this timestamp to schedule.
  */
 public function handleDelayedItems($timestamp = null)
 {
     while (($timestamp = ResqueScheduler::nextDelayedTimestamp($timestamp)) !== false) {
         $this->updateProcLine('Processing Delayed Items');
         $this->enqueueDelayedItemsForTimestamp($timestamp);
     }
 }