How to keep Laravel Queue system running on server

后端 未结 17 1040
小鲜肉
小鲜肉 2020-11-28 02:23

I recently setup a Laravel Queue system. The basics are a cronjob calls a command which adds jobs to a queue and calls a second command which sends an email.

The sy

17条回答
  •  忘掉有多难
    2020-11-28 03:04

    I simply used php artisan queue:work --tries=3 & which keeps the process running in the background. But it sometimes stops. I don't know why this is happening

    Edit

    I solved this issue by using supervisor. Put a supervisor script that runs this php script, and that will run every time the server runs

提交回复
热议问题