Running the Laravel scheduler and queues on our hosting

Updated 19/11/2026 · 1 min read

Laravel needs one cron entry to run its scheduler. Queued jobs can then be processed by the scheduler itself, without a worker that runs all day.

Add the cron job

In cPanel open Cron Jobs, choose Once Per Minute and use this command (change the path to your app):

/usr/local/bin/php /home/yourcpaneluser/app/artisan schedule:run >> /dev/null 2>&1

Process the queue from the scheduler

Set QUEUE_CONNECTION=database in .env, run php artisan queue:table and php artisan migrate, then add this to your schedule:

$schedule->command('queue:work --stop-when-empty --max-time=50')->everyMinute()->withoutOverlapping();

Jobs are picked up within a minute, and the worker exits once the queue is empty. That keeps your account inside its resource limits.

When you need more

If your app needs workers that never stop, Laravel Horizon, Redis or WebSockets, a VPS is the right home. We can move your app across without code changes.

Was this helpful? Still stuck? Open a ticket
Talk to sales