擅长:python、mysql、java
<p>从<a href="http://docs.celeryproject.org/en/latest/faq.html#isn-t-using-pickle-a-security-concern" rel="nofollow" title="docquot;">doc</a>:</p>
<blockquote>
<p>For the task messages you can set the CELERY_TASK_SERIALIZER setting
to “json” or “yaml” instead of pickle. There is currently no
alternative solution for task results (but writing a custom result
backend using JSON is a simple task)</p>
</blockquote>
<p>所以设置<code>CELERY_RESULT_SERIALIZER = "json"</code>看起来没用。在我的例子中,结果仍然是腌菜(芹菜3.1.3)。是 啊。我知道。。。</p>