How do I restart celery workers gracefully?

前端 未结 7 1740
别跟我提以往
别跟我提以往 2020-12-07 13:47

While issuing a new build to update code in workers how do I restart celery workers gracefully?

Edit: What I intend to do is to something like this

7条回答
  •  一向
    一向 (楼主)
    2020-12-07 14:29

    What should happen to long running tasks? I like it this way: long running tasks should do their job. Don't interrupt them, only new tasks should get the new code.

    But this is not possible at the moment: https://groups.google.com/d/msg/celery-users/uTalKMszT2Q/-MHleIY7WaIJ

提交回复
热议问题