Переглянути джерело

document indexing not bound to a Session (#21015)

Co-authored-by: xuhaixing <xuhaixing@itiger.com>
tags/1.4.3
徐海兴 4 місяці тому
джерело
коміт
f6aa2498a3
Аккаунт користувача з таким Email не знайдено
1 змінених файлів з 2 додано та 2 видалено
  1. 2
    2
      api/tasks/retry_document_indexing_task.py

+ 2
- 2
api/tasks/retry_document_indexing_task.py Переглянути файл

@@ -30,11 +30,11 @@ def retry_document_indexing_task(dataset_id: str, document_ids: list[str]):
logging.info(click.style("Dataset not found: {}".format(dataset_id), fg="red"))
db.session.close()
return
tenant_id = dataset.tenant_id
for document_id in document_ids:
retry_indexing_cache_key = "document_{}_is_retried".format(document_id)
# check document limit
features = FeatureService.get_features(dataset.tenant_id)
features = FeatureService.get_features(tenant_id)
try:
if features.billing.enabled:
vector_space = features.vector_space

Завантаження…
Відмінити
Зберегти