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?

Marconi
  • 199
  • 3
  • 14

1 Answers1

0

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

Lloyd Moore
  • 111
  • 3
  • 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 09:33