Beispiel #1
0
 /**
  * Execute the job.
  *
  * @return void
  */
 public function handle()
 {
     if ($this->attempts() > 2) {
         $this->release();
     } else {
         //move to a new position
         $this->repo->move($this->item, $this->new_position);
     }
 }
Beispiel #2
0
 /**
  * Execute the job.
  *
  * @return void
  */
 public function handle()
 {
     $interval = ref_conf('addmore.interval', 3600);
     $amount = ref_conf('addmore.amount', 1);
     for ($i = 0; $i < $amount; $i++) {
         $this->repo->addToQueue();
     }
     $job = (new AddMore())->delay($interval);
     $this->dispatch($job);
 }