Quellcode durchsuchen

Redis result backend: Adds the ability to wait for results without polling.

TODO Needs to document how one would do this.
Steeve Morin vor 13 Jahren
Ursprung
Commit
94edfbf0bb
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      celery/backends/redis.py

+ 1 - 0
celery/backends/redis.py

@@ -69,6 +69,7 @@ class RedisBackend(KeyValueStoreBackend):
         client.set(key, value)
         if self.expires is not None:
             client.expire(key, self.expires)
+        client.publish(key, value)
 
     def delete(self, key):
         self.client.delete(key)