(self, *args: object, **kwargs: object)
| 29 | def celery_init_app(app: Flask) -> Celery: |
| 30 | class FlaskTask(Task): |
| 31 | def __call__(self, *args: object, **kwargs: object) -> object: |
| 32 | with app.app_context(): |
| 33 | return self.run(*args, **kwargs) |
| 34 | |
| 35 | celery_app = Celery(app.name, task_cls=FlaskTask) |
| 36 | celery_app.config_from_object(app.config["CELERY"]) |
nothing calls this directly
no test coverage detected