You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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"]