Normally, the max tries are specified on the queue level like so:
php artisan queue:listen connection-name --tries=3
I would like to be able to override this (without affecting other jobs) on the job level within the job class.
I can think of three ways to go about this but they may not be elegant:
- Set a high number of tries on queue level
- Look into the failed queue and retry the job
- Create a new job upon failure
Note:
- My case is related to polling via API.
- I am recording my poll attempts within my own model.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire