Skip to content

Commit b453936

Browse files
authoredMay 15, 2023
Bump python release number - 0.2.8.dev (#1000)
* New version number for next SK Python release * Change integration tests retry logic to progressively back off from 2 to 7 secs

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
 

‎python/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "semantic-kernel"
3-
version = "0.2.7.dev"
3+
version = "0.2.8.dev"
44
description = ""
55
authors = ["Microsoft <SK-Support@microsoft.com>"]
66
readme = "pip/README.md"

‎python/tests/integration/completions/e2e_text_completion.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
logger = logging.getLogger()
1313

1414

15-
async def retry(func, retries=15, delay=1):
15+
async def retry(func, retries=20):
16+
min_delay = 2
17+
max_delay = 7
1618
for i in range(retries):
1719
try:
1820
result = str(await func())
@@ -23,7 +25,7 @@ async def retry(func, retries=15, delay=1):
2325
logger.error(f"Retry {i + 1}: {e}")
2426
if i == retries - 1: # Last retry
2527
raise
26-
time.sleep(delay)
28+
time.sleep(max(min(i, max_delay), min_delay))
2729

2830

2931
async def summarize_function_test(kernel: sk.Kernel):

0 commit comments

Comments
 (0)
Please sign in to comment.