Explorar o código

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

TODO Needs to document how one would do this.
Steeve Morin %!s(int64=13) %!d(string=hai) anos
pai
achega
94edfbf0bb
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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)