滤波内容
版本化
文本搜索
批量retry ()
重试)
方法指令集群管理者重试故障或中断批量请求优化,并改变状态提交.请参考批量状态代码段详解
示例用法
starttime = time.time() while batch.BatchStatus == GRB.BATCH_SUBMITTED: # Abort this batch if it is taking too long curtime = time.time() if curtime - starttime > maxwaittime: batch.abort() break # Wait for two seconds time.sleep(2) # Update the resident attribute cache of the Batch object with the # latest values from the cluster manager.批量更新 () # 如果批量失败, 批量重试 。 B批量状态 = GRB.BATCH_FAILED:批量重试