- waybill retry count set to 3.
This commit is contained in:
@@ -26,7 +26,7 @@ const (
|
|||||||
pendingOrderTimerMinSecond = 2
|
pendingOrderTimerMinSecond = 2
|
||||||
pendingOrderTimerMaxSecond = 5
|
pendingOrderTimerMaxSecond = 5
|
||||||
|
|
||||||
maxWaybillRetryCount = 2
|
maxWaybillRetryCount = 3
|
||||||
|
|
||||||
orderMapStoreMaxTime = 4 * 24 * time.Hour // cache最长存储时间
|
orderMapStoreMaxTime = 4 * 24 * time.Hour // cache最长存储时间
|
||||||
)
|
)
|
||||||
@@ -364,7 +364,7 @@ func (s *DefScheduler) createWaybillOn3rdProviders(savedOrderInfo *WatchOrderInf
|
|||||||
err = scheduler.ErrCanNotCreateAtLeastOneWaybill
|
err = scheduler.ErrCanNotCreateAtLeastOneWaybill
|
||||||
}
|
}
|
||||||
} else {
|
} 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 {
|
} else {
|
||||||
globals.SugarLogger.Debugf("createWaybillOn3rdProviders, orderID:%s, store:%d dont't support 3rd delivery platform", order.VendorOrderID, jxutils.GetJxStoreIDFromOrder(order))
|
globals.SugarLogger.Debugf("createWaybillOn3rdProviders, orderID:%s, store:%d dont't support 3rd delivery platform", order.VendorOrderID, jxutils.GetJxStoreIDFromOrder(order))
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ func (c *BaseScheduler) Swtich2SelfDeliver(order *model.GoodsOrder) (err error)
|
|||||||
globals.SugarLogger.Infof("Swtich2SelfDeliver orderID:%s", order.VendorOrderID)
|
globals.SugarLogger.Infof("Swtich2SelfDeliver orderID:%s", order.VendorOrderID)
|
||||||
if order.Status == model.OrderStatusFinishedPickup {
|
if order.Status == model.OrderStatusFinishedPickup {
|
||||||
if c.IsReallyCallPlatformAPI {
|
if c.IsReallyCallPlatformAPI {
|
||||||
err = utils.CallFuncLogError(func() error {
|
err = utils.CallFuncLogErrorWithInfo(func() error {
|
||||||
return c.GetPurchasePlatformFromVendorID(order.VendorID).Swtich2SelfDeliver(order)
|
return c.GetPurchasePlatformFromVendorID(order.VendorID).Swtich2SelfDeliver(order)
|
||||||
}, "Swtich2SelfDeliver orderID:%s", order.VendorOrderID)
|
}, "Swtich2SelfDeliver orderID:%s", order.VendorOrderID)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user