mirror of
https://github.com/langgenius/dify.git
synced 2025-11-05 21:30:07 +00:00
14 lines
392 B
Python
14 lines
392 B
Python
import psycogreen.gevent as pscycogreen_gevent # type: ignore
|
|
from grpc.experimental import gevent as grpc_gevent # type: ignore
|
|
|
|
# grpc gevent
|
|
grpc_gevent.init_gevent()
|
|
print("gRPC patched with gevent.", flush=True) # noqa: T201
|
|
pscycogreen_gevent.patch_psycopg()
|
|
print("psycopg2 patched with gevent.", flush=True) # noqa: T201
|
|
|
|
|
|
from app import app, celery
|
|
|
|
__all__ = ["app", "celery"]
|