mirror of https://github.com/interlegis/sapl.git
ulyssesBML
4 years ago
6 changed files with 34 additions and 2 deletions
@ -0,0 +1,3 @@ |
|||||
|
from .celery import celery_app |
||||
|
|
||||
|
__all__ = ('celery_app',) |
@ -0,0 +1,9 @@ |
|||||
|
|
||||
|
import os |
||||
|
from celery import Celery |
||||
|
|
||||
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sapl.settings') |
||||
|
|
||||
|
celery_app = Celery('sapl') |
||||
|
celery_app.config_from_object('django.conf:settings', namespace='CELERY') |
||||
|
celery_app.autodiscover_tasks() |
@ -0,0 +1,6 @@ |
|||||
|
from celery import shared_task |
||||
|
|
||||
|
#teste |
||||
|
@shared_task |
||||
|
def adding_task(x, y): |
||||
|
return x + y |
Loading…
Reference in new issue