Browse Source
Merge pull request #1637 from doccano/fix/taskFileName
Rename tasks to celery_tasks
pull/1638/head
Hiroki Nakayama
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
4 additions and
4 deletions
-
backend/api/celery_tasks.py
-
backend/api/tests/test_tasks.py
-
backend/api/views/export_dataset.py
-
backend/api/views/import_dataset.py
-
backend/app/celery.py
|
|
@ -2,11 +2,11 @@ import pathlib |
|
|
|
|
|
|
|
from django.test import TestCase |
|
|
|
|
|
|
|
from ..celery_tasks import ingest_data |
|
|
|
from ..models import (DOCUMENT_CLASSIFICATION, |
|
|
|
INTENT_DETECTION_AND_SLOT_FILLING, SEQ2SEQ, |
|
|
|
SEQUENCE_LABELING, Category, CategoryType, Example, Span, |
|
|
|
SpanType) |
|
|
|
from ..tasks import ingest_data |
|
|
|
from .api.utils import prepare_project |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -8,8 +8,8 @@ from rest_framework.views import APIView |
|
|
|
|
|
|
|
from members.permissions import IsProjectAdmin |
|
|
|
|
|
|
|
from ..celery_tasks import export_dataset |
|
|
|
from ..models import Project |
|
|
|
from ..tasks import export_dataset |
|
|
|
from .download.catalog import Options |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -10,8 +10,8 @@ from rest_framework.views import APIView |
|
|
|
|
|
|
|
from members.permissions import IsProjectAdmin |
|
|
|
|
|
|
|
from ..celery_tasks import ingest_data |
|
|
|
from ..models import Project |
|
|
|
from ..tasks import ingest_data |
|
|
|
from .upload.catalog import Options |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -8,4 +8,4 @@ app = Celery('app') |
|
|
|
|
|
|
|
app.config_from_object('django.conf:settings', namespace='CELERY') |
|
|
|
|
|
|
|
app.autodiscover_tasks() |
|
|
|
app.autodiscover_tasks(related_name='celery_tasks') |