This commit is contained in:
suyl
2021-08-05 10:12:46 +08:00
parent 517c443332
commit 04b41d6e44
3 changed files with 4 additions and 8 deletions

View File

@@ -1974,10 +1974,6 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
return err
}
var (
textChan chan string
)
func FreeBatchInfo2(name string, handler func(tasksch.ITask, []*jdapi.SkuIdEntity) (interface{}, int, error), ctx *jxcontext.Context, parentTask tasksch.ITask, storeSkuList []*jdapi.SkuIdEntity, batchSize int, isContinueWhenError bool) (resultList []interface{}, err error) {
task := tasksch.NewParallelTask2(fmt.Sprintf("FreeBatchInfo:%s", name), tasksch.NewParallelConfig().SetParallelCount(1).SetBatchSize(batchSize).SetIsContinueWhenError(isContinueWhenError), ctx,
func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, successCount int, err error) {