0

In Laravel job given queue connection as QUEUE_CONNECTION=database. when using QUEUE_CONNECTION=sync php artisan queue:work is running but when using QUEUE_CONNECTION=database queue is not triggering. php artisan queue:listen also not triggering the job.

12
  • Make sure to clear the cache. use php artisan config:cache and the php artisan queue:work Commented Jun 23, 2020 at 11:29
  • Do you see any errors in the log file? Commented Jun 23, 2020 at 11:34
  • Thanks for the reply. There is no error in log file. Commented Jun 23, 2020 at 11:41
  • Run php artisan queue:restart. Tell me if this works. Commented Jun 23, 2020 at 11:42
  • I have cleared cache also. Same error coming. Commented Jun 23, 2020 at 11:42

2 Answers 2

1

You need to run

php artisan queue:restart 

in one tab and another tab that is running

php artisan queue:work
Sign up to request clarification or add additional context in comments.

Comments

0

Please run

php artisan queue:work --queue orders

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.