Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do you send task to celery through redis pubsub once a new record has been inserted into a postgresql table?

My problem here is to get redis to listen for inserts in my postgresql table, and when it detects an insert, it should send tasks to celery. Any idea?

share|improve this question

You have to tell redis that you have inserted a record in your table, not the other way around.

share|improve this answer
Whenever you do an insert to your database, you have to publish the fact on a redis channel. If redis is listening to the same channel this will solve your problem – Lloyd Moore Jan 10 '12 at 9:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.