lundi 23 octobre 2017

Set preference for Laravel 5.1 Queues

I am using laravel 5.1 for my application. And for event handlers i am using shoudque as below

class QuizCreatedHandler implements ShouldQueue
{
   /**
     * Create the event listener.
     *
     * @return void
     */
     public function __construct()
     {
     }

  /**
    * Handle the event.
    *
    * @param  QuizCreated  $event
    * @return void
   */
    public function handle(QuizCreated $event)
    {
       //codes here
    }
}

But the thing when i comment shouldqueue, events working perfectly. But if i use shouldqueue, the event is not getting even after 1 hour. Is there any way to check it? Or is there any way to set high priority to this queue ?

Appreciate any Help.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire