Files
fastapi-best-architecture/backend/app/task/session.py
T
Wu Clan 5762834744 Update the ruff rules and format the code (#846)
* Update the ruff rules and format the code

* Update the per-file-ignores

* Update the ci

* Update rules

* Fix codes

* Fix pagination

* Update rules
2025-10-10 19:02:49 +08:00

14 lines
336 B
Python

from celery.backends.database.session import SessionManager as CelerySessionManager
class SessionManager(CelerySessionManager):
"""
重写 celery SessionManager
"""
def __init__(self) -> None:
super().__init__()
# 禁止自动创建 celery 内部定义的任务结果表
self.prepared = True