Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.