- waybill retry count set to 3.
This commit is contained in:
@@ -26,7 +26,7 @@ const (
|
||||
pendingOrderTimerMinSecond = 2
|
||||
pendingOrderTimerMaxSecond = 5
|
||||
|
||||
maxWaybillRetryCount = 2
|
||||
maxWaybillRetryCount = 3
|
||||
|
||||
orderMapStoreMaxTime = 4 * 24 * time.Hour // cache最长存储时间
|
||||
)
|
||||
@@ -364,7 +364,7 @@ func (s *DefScheduler) createWaybillOn3rdProviders(savedOrderInfo *WatchOrderInf
|
||||
err = scheduler.ErrCanNotCreateAtLeastOneWaybill
|
||||
}
|
||||
} else {
|
||||
globals.SugarLogger.Warnf("createWaybillOn3rdProviders, orderID:%s failed %d times, stop schedule", order.VendorOrderID, savedOrderInfo.retryCount)
|
||||
globals.SugarLogger.Warnf("createWaybillOn3rdProviders, orderID:%s failed %d times, stop schedule", order.VendorOrderID, savedOrderInfo.retryCount-1)
|
||||
}
|
||||
} else {
|
||||
globals.SugarLogger.Debugf("createWaybillOn3rdProviders, orderID:%s, store:%d dont't support 3rd delivery platform", order.VendorOrderID, jxutils.GetJxStoreIDFromOrder(order))
|
||||
|
||||
Reference in New Issue
Block a user