Skip to content

Commit

Permalink
increase page size for list workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Sep 28, 2024
1 parent 2e87f31 commit e1a691c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hypha/core/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@ async def list_workspaces(
self,
match: dict = Field(None, description="Match pattern for filtering workspaces"),
page: int = Field(1, description="Page number for pagination"),
page_size: int = Field(10, description="Number of items per page"),
page_size: int = Field(256, description="Number of items per page"),
context=None,
) -> List[Dict[str, Any]]:
"""Get all workspaces with pagination."""
Expand Down Expand Up @@ -1347,7 +1347,7 @@ async def unload_if_empty(self, context=None):
await self.unload(context=context)
else:
logger.warning(
f"Workspace {context['ws']} is not empty, remaining clients: {client_keys[:10]}..." # only list the first 10 maximum
f"Skip unloading workspace {context['ws']} because it is not empty, remaining clients: {client_keys[:10]}..." # only list the first 10 maximum
)

async def unload(self, context=None):
Expand Down

0 comments on commit e1a691c

Please sign in to comment.