فهرست منبع

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

TODO Needs to document how one would do this.
Steeve Morin 13 سال پیش
والد
کامیت
94edfbf0bb
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  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)