jeudi 23 novembre 2017

Clear Laravel Queue Cache without restarting

In my application, every customer has a kind of complex class in which we do some search and replaces for that specific customer. I run Queue workers to run a daily sync with eBay for every single customer to do some kind of search and replaces.

The problem is Laravel queues caches the code for a good deal of time and if I want to go and change any customer class file (Which happens frequently), I will have to restart queue workers (Which may stop a running job that I don't intend to stop).

So my question is, how to force Laravel Queue to reread the new code without restarting workers?




Aucun commentaire:

Enregistrer un commentaire