AaravM 路 03 Oct 2026, 08:03 PM
Shared hosting usually gives you cron but no supervisor. Here is a setup that works well:
1. One cron line
2. Database queue processed by the scheduler
3. Check it works
Add a test job, wait a minute, then look at the jobs table. Done! 馃殌
1. One cron line
Code
* * * * * /usr/local/bin/php /home/USER/app/artisan schedule:run >> /dev/null 2>&12. Database queue processed by the scheduler
PHP
Schedule::command('queue:work --stop-when-empty --max-time=50')->everyMinute()->withoutOverlapping();3. Check it works
Add a test job, wait a minute, then look at the jobs table. Done! 馃殌