add celery stuff

This commit is contained in:
2017-02-06 18:50:10 +01:00
parent 567d6007fe
commit 288abf1ad0
4 changed files with 46 additions and 0 deletions

8
billard/tasks.py Normal file
View File

@@ -0,0 +1,8 @@
from __future__ import absolute_import, unicode_literals
from celery import shared_task
from . import models
@shared_task
def add(x, y):
return x + y