Skip to content

Commit 9c31825

Browse files
Improve concurrent network deletion error handling
1 parent 1012fc9 commit 9c31825

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

meraki/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
ACTION_BATCH_RETRY_WAIT_TIME = 60
2626

2727
# Network deletion concurrency error retry wait time
28-
NETWORK_DELETE_RETRY_WAIT_TIME = 180
28+
NETWORK_DELETE_RETRY_WAIT_TIME = 240
2929

3030
# Retry if encountering other 4XX error (besides 429)?
3131
RETRY_4XX_ERROR = False

meraki/rest_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def request(self, metadata, method, url, **kwargs):
284284
# Check specifically for network delete concurrency error
285285
if message_is_dict and 'errors' in message.keys() \
286286
and network_delete_concurrency_error_text in message['errors'][0]:
287-
wait = random.randint(15, self._network_delete_retry_wait_time)
287+
wait = random.randint(30, self._network_delete_retry_wait_time)
288288
if self._logger:
289289
self._logger.warning(f'{tag}, {operation} - {status} {reason}, retrying in {wait} seconds')
290290
time.sleep(wait)

0 commit comments

Comments
 (0)