Skip to content

Commit 7fa6d9b

Browse files
feat: Update browser pool org limits
1 parent f854b63 commit 7fa6d9b

File tree

5 files changed

+29
-9
lines changed

5 files changed

+29
-9
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 91
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-59d2925a3cb93809cc762a3ac350691b365898e284f2c66a5999b9a6a37a35e5.yml
3-
openapi_spec_hash: dfcb0a49e657426d0c0f44cfa3e89430
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-97558c7b5f2714e629041ff892cdabef76c4ab214b5f908ba8b36d507eac5260.yml
3+
openapi_spec_hash: 3464d532154863ca17b82082451b9faf
44
config_hash: cc7fdd701d995d4b3456d77041c604cf

src/kernel/resources/browser_pools.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ def create(
7979
Create a new browser pool with the specified configuration and size.
8080
8181
Args:
82-
size: Number of browsers to create in the pool
82+
size: Number of browsers to maintain in the pool. The maximum size is determined by
83+
your organization's pooled sessions limit (the sum of all pool sizes cannot
84+
exceed your limit).
8385
8486
extensions: List of browser extensions to load into the session. Provide each by id or name.
8587
@@ -206,7 +208,9 @@ def update(
206208
Updates the configuration used to create browsers in the pool.
207209
208210
Args:
209-
size: Number of browsers to create in the pool
211+
size: Number of browsers to maintain in the pool. The maximum size is determined by
212+
your organization's pooled sessions limit (the sum of all pool sizes cannot
213+
exceed your limit).
210214
211215
discard_all_idle: Whether to discard all idle browsers and rebuild the pool immediately. Defaults
212216
to false.
@@ -513,7 +517,9 @@ async def create(
513517
Create a new browser pool with the specified configuration and size.
514518
515519
Args:
516-
size: Number of browsers to create in the pool
520+
size: Number of browsers to maintain in the pool. The maximum size is determined by
521+
your organization's pooled sessions limit (the sum of all pool sizes cannot
522+
exceed your limit).
517523
518524
extensions: List of browser extensions to load into the session. Provide each by id or name.
519525
@@ -640,7 +646,9 @@ async def update(
640646
Updates the configuration used to create browsers in the pool.
641647
642648
Args:
643-
size: Number of browsers to create in the pool
649+
size: Number of browsers to maintain in the pool. The maximum size is determined by
650+
your organization's pooled sessions limit (the sum of all pool sizes cannot
651+
exceed your limit).
644652
645653
discard_all_idle: Whether to discard all idle browsers and rebuild the pool immediately. Defaults
646654
to false.

src/kernel/types/browser_pool.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ class BrowserPoolConfig(BaseModel):
1515
"""Configuration used to create all browsers in this pool"""
1616

1717
size: int
18-
"""Number of browsers to create in the pool"""
18+
"""Number of browsers to maintain in the pool.
19+
20+
The maximum size is determined by your organization's pooled sessions limit (the
21+
sum of all pool sizes cannot exceed your limit).
22+
"""
1923

2024
extensions: Optional[List[BrowserExtension]] = None
2125
"""List of browser extensions to load into the session.

src/kernel/types/browser_pool_create_params.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414

1515
class BrowserPoolCreateParams(TypedDict, total=False):
1616
size: Required[int]
17-
"""Number of browsers to create in the pool"""
17+
"""Number of browsers to maintain in the pool.
18+
19+
The maximum size is determined by your organization's pooled sessions limit (the
20+
sum of all pool sizes cannot exceed your limit).
21+
"""
1822

1923
extensions: Iterable[BrowserExtension]
2024
"""List of browser extensions to load into the session.

src/kernel/types/browser_pool_update_params.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414

1515
class BrowserPoolUpdateParams(TypedDict, total=False):
1616
size: Required[int]
17-
"""Number of browsers to create in the pool"""
17+
"""Number of browsers to maintain in the pool.
18+
19+
The maximum size is determined by your organization's pooled sessions limit (the
20+
sum of all pool sizes cannot exceed your limit).
21+
"""
1822

1923
discard_all_idle: bool
2024
"""Whether to discard all idle browsers and rebuild the pool immediately.

0 commit comments

Comments
 (0)