mirror of
https://github.com/langgenius/dify.git
synced 2026-11-11 22:02:23 +08:00
Co-authored-by: Codex <codex@openai.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
15 lines
406 B
Python
15 lines
406 B
Python
import psycogreen.gevent as pscycogreen_gevent
|
|
from grpc.experimental import gevent as grpc_gevent
|
|
|
|
# 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
|
|
|
|
|
|
# Import after gevent patching.
|
|
from app import app, celery # noqa: E402
|
|
|
|
__all__ = ["app", "celery"]
|