您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

celery_entrypoint.py 392B

12345678910111213
  1. import psycogreen.gevent as pscycogreen_gevent # type: ignore
  2. from grpc.experimental import gevent as grpc_gevent # type: ignore
  3. # grpc gevent
  4. grpc_gevent.init_gevent()
  5. print("gRPC patched with gevent.", flush=True) # noqa: T201
  6. pscycogreen_gevent.patch_psycopg()
  7. print("psycopg2 patched with gevent.", flush=True) # noqa: T201
  8. from app import app, celery
  9. __all__ = ["app", "celery"]