celery官方文档的例子
已经成功的运行起来。
查看redis也有相应的内容。
127.0.0.1:6379[1]> keys *
1) "aaa"
2) "celery-task-meta-0bad4edc-7a86-4f0a-b951-9f761e3cb145"
3) "celery-task-meta-7e62e882-a253-41f6-b303-1379ad2bf372"
4) "celery-task-meta-260f40ba-b1f3-4826-87cb-b440160f4b98"
5) "celery-task-meta-2850f9a8-db93-4b3c-b0d8-169c666b5467"
但是查看相应的key的内容发现
127.0.0.1:6379[1]> get celery-task-meta-2850f9a8-db93-4b3c-b0d8-169c666b5467
"\x80\x02}q\x01(U\x06statusq\x02U\aSUCCESSq\x03U\ttracebackq\x04NU\x06resultq\x05K\bU\bchildrenq\x06]u."
内容应该没有错,但是我就想要返回的结果啊,应该怎么做才能获得返回的结果。
Does backend use redis? If so, you can use the value after tasks.add as the key to search in redis
For details, you can read this blog: http://www.cnblogs.com/piperc...