mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-22 05:22:56 +00:00
* Update the ruff rules and format the code * Update the per-file-ignores * Update the ci * Update rules * Fix codes * Fix pagination * Update rules
14 lines
336 B
Python
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
|