Skip to content

Commit

Permalink
Bump python release number - 0.2.8.dev (#1000)
Browse files Browse the repository at this point in the history
* New version number for next SK Python release
* Change integration tests retry logic to progressively back off from 2 to 7 secs
  • Loading branch information
dluc authored May 15, 2023
1 parent ba55ac0 commit b453936
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "semantic-kernel"
version = "0.2.7.dev"
version = "0.2.8.dev"
description = ""
authors = ["Microsoft <SK-Support@microsoft.com>"]
readme = "pip/README.md"
Expand Down
6 changes: 4 additions & 2 deletions python/tests/integration/completions/e2e_text_completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
logger = logging.getLogger()


async def retry(func, retries=15, delay=1):
async def retry(func, retries=20):
min_delay = 2
max_delay = 7
for i in range(retries):
try:
result = str(await func())
Expand All @@ -23,7 +25,7 @@ async def retry(func, retries=15, delay=1):
logger.error(f"Retry {i + 1}: {e}")
if i == retries - 1: # Last retry
raise
time.sleep(delay)
time.sleep(max(min(i, max_delay), min_delay))


async def summarize_function_test(kernel: sk.Kernel):
Expand Down

0 comments on commit b453936

Please sign in to comment.