Stopping gearman workers nicely

后端 未结 12 1136
滥情空心
滥情空心 2021-01-30 04:24

I have a number of Gearman workers running constantly, saving things like records of user page views, etc. Occasionally, I\'ll update the PHP code that is used by the Gearman w

12条回答
  •  不知归路
    2021-01-30 04:56

    This would fit nicely into your continuous integration system. I hope you have it or you should have it soon :-)

    As you check in new code, it automatically gets built and deployed onto the server. As a part of the build script, you kill all workers, and launch new ones.

提交回复
热议问题