Im trying to send a job to the queue.
Controller
public function play($id, Request $request)
{
ProcessResult::dispatch($id);
dd ('done');
Job
public function handle()
{
sleep(25) {
Code works is fine, but:
- 'jobs' table is empty;
- page in browser is busy until job is not completed;
- dd('done') is not arrived until job is not completed;
Driver is database on localhost. Laravel 9.
What could be a mistake or a general misunderstanding of the logic of the queues?