- EnableHaveRestStores中正确处理isContinueWhenError
This commit is contained in:
@@ -533,7 +533,7 @@ func EnableHaveRestStores(ctx *jxcontext.Context, isAsync, isContinueWhenError b
|
|||||||
return "0", nil
|
return "0", nil
|
||||||
}
|
}
|
||||||
|
|
||||||
task := tasksch.NewParallelTask("EnableHaveRestStores", nil, ctx,
|
task := tasksch.NewParallelTask("EnableHaveRestStores", tasksch.NewParallelConfig().SetIsContinueWhenError(isContinueWhenError), ctx,
|
||||||
func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) {
|
func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) {
|
||||||
store := batchItemList[0].(*StoreExt)
|
store := batchItemList[0].(*StoreExt)
|
||||||
err = SetStoreStatus(ctx, store.ID, model.StoreStatusOpened)
|
err = SetStoreStatus(ctx, store.ID, model.StoreStatusOpened)
|
||||||
|
|||||||
Reference in New Issue
Block a user