laravel / ideas

Issues board used for Laravel internals discussions.
938 stars 28 forks source link

Laravel 5.7 queue is not processing jobs. I change queue driver to database #1549

Open pratiksuthar8032 opened 5 years ago

pratiksuthar8032 commented 5 years ago

MY QUEUE FILE public $tries = 3; public function __construct($key,$studentid) { $this->Studentid = $studentid; $this->key = $key; }

/**
 * Execute the job.
 *
 * @return void
 */
public function handle()
{

    $key = [
              'key'  => $this->key,
          ];
    $StudentEmail = $this->Studentid;
    Mail::to($StudentEmail)->send(new LinkEmail($key));
}

MY CONTROLLER FILE

      $job = (new SendEmailjob($randomKey,$StudentEmail))
                ->delay(Carbon::now()->addSecond(20));

        dispatch($job); 
tomschlick commented 5 years ago

This forum is for feature requests / internals chatter, not for support. Please use the Laracasts forum or StackOverflow for troubleshooting.