laravel queues and jobs

 queue and jobs

laravel queue-> first in fort out








for example to process some tasks it needs too much time, for that type we need have to throw to some place, after some time we have to execute automatically



fifo -> it will wait to complete to complete the previous task





 





to execiute all jobs
php artisan queue:work


  1. Which artisan command generates jobs migrations?

    Marked Answer : queue:table

    Correct Answer : queue:table

  2. Queueable jobs are stored in _______ directory.

    Marked Answer : app/Queue

    Correct Answer : app/Jobs

  3. Which queue drivers supported in Laravel?

    Marked Answer : All of the above

    Correct Answer : All of the above

  4. Which command is used to start a queue worker?

    Marked Answer : queue:work

    Correct Answer : queue:work

  5. Which method is invoked when the job is processed by the queue?

    Marked Answer : handle()

    Correct Answer : handle()





No comments:

Post a Comment

Event listening in react

 How we can listen to som eevents some envents fire like click or automatically user enters into input button , that is event on word type i...