Skip to content

Commit 79d7177

Browse files
committed
fix: increasng timeout and number of retries
1 parent c65d115 commit 79d7177

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/system/_helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
retry_503 = retry.RetryErrors(exceptions.ServiceUnavailable)
5959
retry_429_503 = retry.RetryErrors(
60-
exceptions.TooManyRequests, exceptions.ServiceUnavailable,
60+
exceptions.TooManyRequests, exceptions.ServiceUnavailable, 8
6161
)
6262
retry_mabye_aborted_txn = retry.RetryErrors(exceptions.ServerError, exceptions.Aborted)
6363
retry_mabye_conflict = retry.RetryErrors(exceptions.ServerError, exceptions.Conflict)
@@ -107,7 +107,7 @@ def scrub_instance_ignore_not_found(to_scrub):
107107

108108

109109
def cleanup_old_instances(spanner_client):
110-
cutoff = int(time.time()) - 1 * 60 * 60 # one hour ago
110+
cutoff = int(time.time()) - 2 * 60 * 60 # one hour ago
111111
instance_filter = "labels.python-spanner-systests:true"
112112

113113
for instance_pb in spanner_client.list_instances(filter_=instance_filter):

0 commit comments

Comments
 (0)