记一次 laravel queue cache 队列缓存引起的生产事故

背景

项目版本改动了 queue 的 job 类的业务逻辑,自测、测试验收没问题后上线生产环境。
出现生产环境执行结果并未改动,还是上线之前的逻辑结果。
各种排查代码版本无误,打印日志耕版不生效,一度怀疑改错了代码文件,修改任何东西都不生效。

后来经搜索结合排查得出原因是 queue 缓存引起的,在这里具体业务代码不表,只说问题以及处理方法步骤。

解决办法

php artisan cache:clear
php artisan config:clear
php artisan queue:restart

执行后成功解决问题

* 切记重启队列

Responses
  1. Thank you for the good writeup. It in fact was a amusement account it. Look advanced to more added agreeable from you! However, how could we communicate?

    Reply
  2. I don't even understand how I ended up right here, but I thought this submit was once great. I do not understand who you are but certainly you are going to a well-known blogger in the event you are not already. Cheers!

    Reply
  3. I think everything posted made a lot of sense. But, what about this? suppose you wrote a catchier title? I ain't suggesting your information isn't good, however suppose you added something that grabbed people's attention? I mean 记一次 laravel queue cache 队列缓存引起的生产事故 - HongXunPan is kinda plain. You ought to glance at Yahoo's home page and note how they create news titles to grab viewers interested. You might add a video or a pic or two to grab readers interested about everything've written. In my opinion, it would make your website a little livelier.

    Reply
  4. You've made some really good points there. I checked on the web to learn more about the issue and found most people will go along with your views on this website.

    Reply
  5. Hi there, I would like to subscribe for this web site to obtain most up-to-date updates, thus where can i do it please help.

    Reply
  6. Good post. I learn something totally new and challenging on blogs I stumbleupon everyday. It's always useful to read through content from other authors and practice a little something from their web sites.

    Reply