From 7008be540aaed498ac3939ce8719b3f60bb2caa1 Mon Sep 17 00:00:00 2001 From: gazebo Date: Mon, 10 Jun 2019 08:47:58 +0800 Subject: [PATCH] =?UTF-8?q?-=20EnableHaveRestStores=E4=B8=AD=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE=E5=A4=84=E7=90=86isContinueWhenError?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index ff7d883da..51317b1dc 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -533,7 +533,7 @@ func EnableHaveRestStores(ctx *jxcontext.Context, isAsync, isContinueWhenError b 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) { store := batchItemList[0].(*StoreExt) err = SetStoreStatus(ctx, store.ID, model.StoreStatusOpened)