kboss/b/computing/component_update.dspy
2025-07-16 14:27:17 +08:00

18 lines
535 B
Plaintext

async def component_update(ns={}):
db = DBPools()
async with db.sqlorContext('kboss') as sor:
try:
await sor.U('component', ns)
return {
'status': True,
'msg': '算力中心节点实例更新成功'
}
except Exception as e:
return {
'status': False,
'msg': '算力中心节点实例更新错误, %s' % str(e)
}
ret = await component_update(params_kw)
return ret