refactor: increase max retries for stock sending logic to improve reliability
This commit is contained in:
@@ -47,7 +47,7 @@ class OzonMarketplaceApi(BaseMarketplaceApi):
|
|||||||
|
|
||||||
self.init_session()
|
self.init_session()
|
||||||
limiter = BatchLimiter()
|
limiter = BatchLimiter()
|
||||||
max_retries = 5
|
max_retries = 10
|
||||||
while chunks:
|
while chunks:
|
||||||
current_retry = 0
|
current_retry = 0
|
||||||
chunk = chunks.pop()
|
chunk = chunks.pop()
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ class WildberriesMarketplaceApi(BaseMarketplaceApi):
|
|||||||
return
|
return
|
||||||
self.init_session()
|
self.init_session()
|
||||||
limiter = BatchLimiter()
|
limiter = BatchLimiter()
|
||||||
max_retries = 5
|
max_retries = 10
|
||||||
while chunks:
|
while chunks:
|
||||||
current_retry = 0
|
current_retry = 0
|
||||||
chunk = chunks.pop()
|
chunk = chunks.pop()
|
||||||
|
|||||||
Reference in New Issue
Block a user