mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 11:56:55 +08:00
r2
This commit is contained in:
parent
270edd43ab
commit
ab1730bbaa
22
api/app.py
22
api/app.py
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user