@@ -0,0 +1,555 @@
+#!/usr/bin/python%0A# -*- coding: utf-8 -*-%0A%0A%22%22%22%0AThis is the billiard assertion error, use EVN to avoid it,%0AIn shell:    export PYTHONOPTIMIZE=1%0AOr in python: os.environ%5B%22PYTHONOPTIMIZE%22%5D = %221%22 # the value is of type string%0A%22%22%22%0A%0Afrom __future__ import absolute_import%0A%0Aimport os%0Aimport multiprocessing%0A%0Afrom celery import Celery%0A%0A%0Aapp = Celery(%22multi-process%22)%0A%0A%0Adef m(arg):%0A    print arg%0A%0A%0A@app.task%0Adef multi(arg):%0A    os.environ%5B%22PYTHONOPTIMIZE%22%5D = %221%22%0A    th = multiprocessing.Process(target=m, args=(arg,))%0A    th.start()%0A    th.join()%0A    return None%0A

add celery_multiprocessing_env.py