DEV Community

Krixnaas
Krixnaas

Posted on • Edited on

1

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay