fix celery job not closed issue (#19268)
This commit is contained in:
@@ -87,6 +87,6 @@ def sync_website_document_indexing_task(dataset_id: str, document_id: str):
|
||||
db.session.commit()
|
||||
logging.info(click.style(str(ex), fg="yellow"))
|
||||
redis_client.delete(sync_indexing_cache_key)
|
||||
pass
|
||||
logging.exception("sync_website_document_indexing_task failed, document_id: {}".format(document_id))
|
||||
end_at = time.perf_counter()
|
||||
logging.info(click.style("Sync document: {} latency: {}".format(document_id, end_at - start_at), fg="green"))
|
||||
|
Reference in New Issue
Block a user