我正在尝试在没有 pyral 的 Python 中使用 WSAPI 在 Rally 中创建 >100 个项目作为 AllowedAttributeValue。输入来自输入文件。代码 -
for line in inputFile:
body = {<body>}
try:
r = requests.post(url, headers=headers, data=body, proxies=proxy)
并非所有 100 行都得到更新。数量从 40 到 70 不等。错误 :
["Concurrency conflict: [Object has been modified since being read for update in this context] - ConcurrencyConflictException : Modified since read on update : Object Class : com.f4tech.slm.domain.WorkspaceConfiguration : ObjectID : <objid>"], "Warnings": []}}
寻找解决方案。感谢你的帮助!