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

18 lines
511 B
Plaintext

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