douyahu
douyahu
fastapi中,我最后是这样解决的    
> 嘿@rehmanali1337, 谢谢你的问题。我会检查这个。 i think ,when user is delete ,the Link can return None and update user My solution is, when **await ref_obj.fetch()** return is Link , return None ...
我用了芹菜,本身是不支持,我通过修改代码,使其支持,例如: ``` from celery import Celery, platforms platforms.C_FORCE_ROOT = True celery_app = Celery("celery_worker") celery_app.config_from_object('backend.celery.celery_config', namespace='celery') async def register_mysql_fastapi(app: FastAPI): # 注册数据库 register_tortoise( app, config=DB_ORM_CONFIG, generate_schemas=os.getenv('INIT_DB', False), add_exception_handlers=False, ) async def...
> > 我用了芹菜,本身是不支持,我通过修改代码,使其支持,例如: > > ``` > > from celery import Celery, platforms > > > > platforms.C_FORCE_ROOT = True > > celery_app = Celery("celery_worker") > > celery_app.config_from_object('backend.celery.celery_config', namespace='celery') >...
> > > > 我用了芹菜,本身是不支持,我通过修改代码,使其支持,例如: > > > > ``` > > > > from celery import Celery, platforms > > > > > > > > platforms.C_FORCE_ROOT = True...