So I am just starting out with laravel queues. I have a job that is just logging something for me to see. The queue driver is database.
The job runs,But the queue does not add any db entries.
I have so far tried
stopping the server after a delayed job is added -> php artisan config:clear -> php artisan config:cache -> restarting before the job runs
The job runs fine, but I can see no entries in the jobs table
What could be missing here?
here are the connections from queue.php
'connections' => [
'sync' => [
'driver' => 'sync',
],
'database' => [
'driver' => 'database',
'table' => 'jobs',
'queue' => 'default',
'retry_after' => 90,
]
]
jobs
table lists all your queued jobs. You aren't seeing any jobs in the table because they have already executed successfully like you said. Once a job runs successfully it is removed from thejobs
table in the database. – Nathan