Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/openai-sdk-python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "supermemory-openai-sdk"
version = "1.0.2"
version = "1.0.3"
description = "Memory tools for OpenAI function calling with supermemory"
readme = "README.md"
license = "MIT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,12 @@ async def wait_for_background_tasks(self, timeout: Optional[float] = 10.0) -> No
f"Background tasks did not complete within {timeout}s timeout"
)
# Cancel remaining tasks
for task in self._background_tasks:
if not task.done():
task.cancel()
tasks_to_cancel = [task for task in self._background_tasks if not task.done()]
for task in tasks_to_cancel:
task.cancel()

if tasks_to_cancel:
await asyncio.gather(*tasks_to_cancel, return_exceptions=True)
raise

def cancel_background_tasks(self) -> None:
Expand Down
2 changes: 1 addition & 1 deletion packages/openai-sdk-python/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading