How to push a job into queue?

Posted 5 months ago by alihoushyaripour


I have a job and want to push it in queue to start with 500 ms delays, I was write this code:

\Queue::push(new SendSimpleNotification('token', 'title', 'content'));

But when code is running and come to this line, if this job take 5 seconds to finished, code wait 5 seconds in this line and it doesn't pass quickly from this line to run it queue later.

Notice that I use a simple curl in my job class that take 5 seconds. (in handle function).

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.