feat: add queue to celery task (#688)

This commit is contained in:
takatost 2023-07-31 13:13:08 +08:00 committed by GitHub
commit 0c18cab111
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 20 additions and 19 deletions

View file

@ -10,7 +10,7 @@ from extensions.ext_database import db
from models.dataset import DocumentSegment, Dataset, Document
@shared_task
@shared_task(queue='dataset')
def clean_notion_document_task(document_ids: List[str], dataset_id: str):
"""
Clean document when document deleted.