I have a defined a Laravel Command that runs via a cron job and everything is OK. I need this command to be triggered by admin user and so I have created a controller which puts the execution of the command in queue by using
Artisan::queue('name:of-console-command')
The job is executed successfully by queue worker, but after finishing it is not being remove from jobs
table. It keeps staying there until max-tries
number is achieved and then is inserted in failed_jobs
table.
My Laravel version is 5.7.
Has anyone experienced something like that? Any help would be appreciated.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire