0

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?

0

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

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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