开发者

Is there a way to make Celery/RabbitMQ persistent?

S开发者_Go百科o that if my server crashes, I still have my Tasks?


RabbitMQ can be persistent, and Celery sends persistent messages by default, so you don't have to do anything to enable this.


rabbitmq persist those messages by default

rabbitmq wont delete messages if they are not acknowledged by consumers,so that's how celery does.

when worker crashed and restarted again,they will receive the messages that not acknowledged last time before crashed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜