开发者

Is there a way to make Celery/RabbitMQ persistent?

开发者 https://www.devze.com 2023-02-01 23:39 出处:网络
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

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

精彩评论

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