๐ฌ Queue / Jobs
Driver: redis
Dispatch a Job
Logs via Log::info() to
storage/logs/laravel-2026-06-21.log
(channel: daily).
// Dispatch
ProcessDemoJob::dispatch($msg);
ProcessDemoJob::dispatchSync($msg);
ProcessDemoJob::dispatch()->delay(30);
ProcessDemoJob::dispatch()->onQueue('high');
// Job class implements ShouldQueue
use Queueable, Dispatchable;
public int $tries = 3;
public int $timeout = 60;
Redis Queue Status
0
Pending in
queues:default
0
In
queues:failed
Jobs are pushed to Redis and consumed by the worker container
running php artisan queue:work redis --sleep=0.1 --tries=3.
Jobs process in ~200ms and disappear from the queue immediately after success โ
so 0 pending is normal when the worker is running.
How to verify:
Run
docker compose logs -f worker and click "Dispatch" โ you'll see the job picked up and processed in real time.