Skip to content

Commit 64ee998

Browse files
author
stlc-bot
committed
feat(scrape): default POST /web/scrape deadline to 90s (#1428)
Stainless-Generated-From: c61108e4d46ec02c2db735c1948e10e442983137
1 parent 4ed7615 commit 64ee998

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎src/context/dev/resources/web.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def scrape(
394394
395395
tags: Labels for tracking request usage. Not retained when zdr is enabled.
396396
397-
timeout_opts: Deadline for the whole request. Defaults to 60000 ms with `fail`. Fixed waits
397+
timeout_opts: Deadline for the whole request. Defaults to 90000 ms with `fail`. Fixed waits
398398
must end before it.
399399
400400
zdr: `enabled` turns on zero data retention. Your organization must have ZDR enabled.
@@ -1802,7 +1802,7 @@ async def scrape(
18021802
18031803
tags: Labels for tracking request usage. Not retained when zdr is enabled.
18041804
1805-
timeout_opts: Deadline for the whole request. Defaults to 60000 ms with `fail`. Fixed waits
1805+
timeout_opts: Deadline for the whole request. Defaults to 90000 ms with `fail`. Fixed waits
18061806
must end before it.
18071807
18081808
zdr: `enabled` turns on zero data retention. Your organization must have ZDR enabled.

‎src/context/dev/types/web_scrape_params.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class WebScrapeParams(TypedDict, total=False):
8080
timeout_opts: Annotated[TimeoutOpts, PropertyInfo(alias="timeoutOpts")]
8181
"""Deadline for the whole request.
8282
83-
Defaults to 60000 ms with `fail`. Fixed waits must end before it.
83+
Defaults to 90000 ms with `fail`. Fixed waits must end before it.
8484
"""
8585

8686
zdr: Literal["enabled", "disabled"]
@@ -386,7 +386,7 @@ class SharedParams(TypedDict, total=False):
386386
class TimeoutOpts(TypedDict, total=False):
387387
"""Deadline for the whole request.
388388
389-
Defaults to 60000 ms with `fail`. Fixed waits must end before it.
389+
Defaults to 90000 ms with `fail`. Fixed waits must end before it.
390390
"""
391391

392392
milliseconds: Required[int]

‎uv.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)