This commit is contained in:
jyong 2025-06-03 16:51:21 +08:00
parent 270edd43ab
commit ab1730bbaa
2 changed files with 12 additions and 11 deletions

View File

@ -19,18 +19,18 @@ else:
# If you are using debugpy and set GEVENT_SUPPORT=True, you can debug with gevent. # If you are using debugpy and set GEVENT_SUPPORT=True, you can debug with gevent.
if (flask_debug := os.environ.get("FLASK_DEBUG", "0")) and flask_debug.lower() in {"false", "0", "no"}: if (flask_debug := os.environ.get("FLASK_DEBUG", "0")) and flask_debug.lower() in {"false", "0", "no"}:
from gevent import monkey from gevent import monkey
#
# # gevent
# monkey.patch_all()
#
# from grpc.experimental import gevent as grpc_gevent # type: ignore
#
# # grpc gevent
# grpc_gevent.init_gevent()
# gevent # import psycogreen.gevent # type: ignore
monkey.patch_all() #
# psycogreen.gevent.patch_psycopg()
from grpc.experimental import gevent as grpc_gevent # type: ignore
# grpc gevent
grpc_gevent.init_gevent()
import psycogreen.gevent # type: ignore
psycogreen.gevent.patch_psycopg()
from app_factory import create_app from app_factory import create_app

View File

@ -236,6 +236,7 @@ class PipelineGenerator(BaseAppGenerator):
"documents": [PipelineDocument( "documents": [PipelineDocument(
id=document.id, id=document.id,
position=document.position, position=document.position,
data_source_type=document.data_source_type,
data_source_info=json.loads(document.data_source_info) if document.data_source_info else None, data_source_info=json.loads(document.data_source_info) if document.data_source_info else None,
name=document.name, name=document.name,
indexing_status=document.indexing_status, indexing_status=document.indexing_status,