Miroca_Server
This commit is contained in:
7
tasks/tasks.py
Normal file
7
tasks/tasks.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from celery import Celery
|
||||
|
||||
app = Celery('tasks', broker='amqp://172.17.0.4:5672')
|
||||
|
||||
@app.task
|
||||
def add(x, y):
|
||||
return x + y
|
||||
Reference in New Issue
Block a user