Skip to content

Commit 091a323

Browse files
Network deletion concurrency handling
1 parent 22c18db commit 091a323

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

meraki/rest_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def handle_4xx_errors(self, metadata, operation, reason, response, retries, stat
252252
action_batch_errors = [error for error in message['errors'] if action_batch_concurrency_error_text in error]
253253

254254
if network_deletion_errors:
255-
wait = random.randint(10, self._network_delete_retry_wait_time)
255+
wait = random.randint(30, self._network_delete_retry_wait_time)
256256
if self._logger:
257257
self._logger.warning(f'{tag}, {operation} - {status} {reason}, retrying in {wait} seconds')
258258
time.sleep(wait)

tests/test_dashboard_api_python_library.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def api_key(pytestconfig):
1414

1515
@pytest.fixture(scope='session')
1616
def dashboard(api_key):
17-
return meraki.DashboardAPI(api_key, suppress_logging=True, network_delete_retry_wait_time=600, maximum_retries=50)
17+
return meraki.DashboardAPI(api_key, suppress_logging=True, network_delete_retry_wait_time=600, maximum_retries=100)
1818

1919

2020
@pytest.fixture(scope='session')

0 commit comments

Comments
 (0)