DEV Community

Krixnaas
Krixnaas

Posted on • Updated on

SiteGround | Laravel Queue Cron Job

php /home/customer/www/example.com/public_html/foldername/artisan queue:work --stop-when-empty --timeout=60>> /dev/null 2>&1

Replace foldername with the name of the folder where the artisan is located. Generally, it is located on the root folder of the project (not inside public folder).

https://crontab.cronhub.io/

FOR Ubuntu:

  • * * * * sleep 10; cd /path_to_your_project && php artisan queue:retry all >> /dev/null 2>&1

sleep 10; is for 10 Sec

Top comments (0)