gocanto's avatar
Level 54

How to test laravel Queue

Hi,

I would like to know how I can test my Queues.

I wanna see fi they are working as they are supposed to. Also, if you know a 3rd party services as mailtrap but for Queue let me know.

thanks!

0 likes
5 replies
denpun's avatar

Just an idea, set up many email jobs/tasks into the queue.

Use your mailtrap account and see if the emails are getting to you :) Use a counter in the email task to keep track of job #.

Disclaimer: I have not used queues, but have been reading up on it and was thinking of testing as well.

gocanto's avatar
Level 54

I am not working with jobs. I am using the notification system now.

I wanna test because I feel my app kind of slow.

I have been reading as well, but nothing solid have found yet

jimmck's avatar

You can install Redis on your Mac with Homebrew. On windows download it and setup. And you have a local queue ready to rock. And you get experience setting one up.

pmall's avatar

What you mean by testing queue?

You can test your jobs, ensure they implements The shouldbequeued interface but I guess thats it.

gocanto's avatar
Level 54

I wanna see if the action is happening

Please or to participate in this conversation.