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

18 lines
517 B
Plaintext

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