Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

sarukomine's avatar

Use crontab to run queue worker in server?

Wanna ask that is that way correct if I add following cron configuration entry into the server for running queue worker?

* * * * * cd /path-to-your-project && php artisan queue:work >> /dev/null 2>&1
0 likes
2 replies
frankielee's avatar

@sarukomine

Yeah.. but why do you need to restart it? Since it is auto start and stop(no job).

BTW if you can install supervisor, do this instead.

Please or to participate in this conversation.