| 12345678910111213141516171819202122232425262728 | """myapp.pyUsage:   (window1)$ python myapp.py worker -l info   (window2)$ python   >>> from myapp import add   >>> add.delay(16, 16).get()   32You can also specify the app to use with the celery command:    $ celery worker -l info --app=myapp"""from celery import Celerycelery = Celery('myapp', broker='amqp://guest@localhost//')@celery.task()def add(x, y):    return x + yif __name__ == '__main__':    celery.start()
 |