Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to make Celery/RabbitMQ persistent?

So that if my server crashes, I still have my Tasks?

like image 921
TIMEX Avatar asked Dec 28 '10 08:12

TIMEX


People also ask

How do you persist messages in RabbitMQ?

RabbitMQ has great durability support, but it's usually not enabled by default in the drivers. To persist messages to disk, and thus survive a server restart, you need to publish to a durable exchange, the receiving queue has to be durable, and you got to set the "persistent" flag on the message you're publishing.

Does celery use RabbitMQ?

Celery is an open-source task queue software written in Python. It's incredibly lightweight, supports multiple brokers (RabbitMQ, Redis, and Amazon SQS), and also integrates with many web frameworks, e.g. Django, etc.

What is the difference between RabbitMQ and celery?

Celery is an asynchronous distributed task queue. RabbitMQ is a message broker which implements the Advanced Message Queuing Protocol (AMQP).


1 Answers

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

like image 73
asksol Avatar answered Sep 23 '22 03:09

asksol