☰
Debian Codegraph
@
5.6.3-3
5.6.3-2
/
/
examples
/
tutorial
/
tasks.py
☽
☼
examples/tutorial/tasks.py
code
plain
raw
BSD-3-clause-ask-solem
2009-2016, Ask Solem and contributors.; 2012-2014, GoPivotal, Inc.
debian/copyright
1
from celery import Celery
2
3
app = Celery('tasks', broker='amqp://')
4
5
6
@app.task()
7
def add(x, y):
8
return x + y
9
10
11
if __name__ == '__main__':
12
app.start()