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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs