Skip to content

Commit 29338a1

Browse files
author
stlc-bot
committed
fix(api): lower partial scrape timeout minimum to five seconds (#1118)
Stainless-Generated-From: 4e6296a0593f46382669238126328ea7d599a197
1 parent 112da34 commit 29338a1

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

pkg/cmd/web.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ var webExtractFonts = requestflag.WithInnerFlags(cli.Command{
280280
},
281281
&requestflag.InnerFlag[string]{
282282
Name: "timeout-opts.behavior",
283-
Usage: `What to do at the deadline. "fail" returns 408 REQUEST_TIMEOUT without charging credits. "return-partial" returns usable results collected so far; if none are available, the request still fails without charging credits. Partial results are not cached as complete results. "return-partial" requires milliseconds of at least 15000.`,
283+
Usage: `What to do at the deadline. "fail" returns 408 REQUEST_TIMEOUT without charging credits. "return-partial" returns usable results collected so far; if none are available, the request still fails without charging credits. Partial results are not cached as complete results. "return-partial" requires milliseconds of at least 5000.`,
284284
InnerField: "behavior",
285285
},
286286
},
@@ -334,7 +334,7 @@ var webExtractStyleguide = requestflag.WithInnerFlags(cli.Command{
334334
},
335335
&requestflag.InnerFlag[string]{
336336
Name: "timeout-opts.behavior",
337-
Usage: `What to do at the deadline. "fail" returns 408 REQUEST_TIMEOUT without charging credits. "return-partial" returns usable results collected so far; if none are available, the request still fails without charging credits. Partial results are not cached as complete results. "return-partial" requires milliseconds of at least 15000.`,
337+
Usage: `What to do at the deadline. "fail" returns 408 REQUEST_TIMEOUT without charging credits. "return-partial" returns usable results collected so far; if none are available, the request still fails without charging credits. Partial results are not cached as complete results. "return-partial" requires milliseconds of at least 5000.`,
338338
InnerField: "behavior",
339339
},
340340
},
@@ -438,7 +438,7 @@ var webScreenshot = requestflag.WithInnerFlags(cli.Command{
438438
},
439439
&requestflag.InnerFlag[string]{
440440
Name: "timeout-opts.behavior",
441-
Usage: `What to do at the deadline. "fail" returns 408 REQUEST_TIMEOUT without charging credits. "return-partial" returns usable results collected so far; if none are available, the request still fails without charging credits. Partial results are not cached as complete results. "return-partial" requires milliseconds of at least 15000.`,
441+
Usage: `What to do at the deadline. "fail" returns 408 REQUEST_TIMEOUT without charging credits. "return-partial" returns usable results collected so far; if none are available, the request still fails without charging credits. Partial results are not cached as complete results. "return-partial" requires milliseconds of at least 5000.`,
442442
InnerField: "behavior",
443443
},
444444
},
@@ -923,7 +923,7 @@ var webWebScrapeHTML = requestflag.WithInnerFlags(cli.Command{
923923
},
924924
&requestflag.InnerFlag[string]{
925925
Name: "timeout-opts.behavior",
926-
Usage: `What to do at the deadline. "fail" returns 408 REQUEST_TIMEOUT without charging credits. "return-partial" returns usable results collected so far; if none are available, the request still fails without charging credits. Partial results are not cached as complete results. "return-partial" requires milliseconds of at least 15000.`,
926+
Usage: `What to do at the deadline. "fail" returns 408 REQUEST_TIMEOUT without charging credits. "return-partial" returns usable results collected so far; if none are available, the request still fails without charging credits. Partial results are not cached as complete results. "return-partial" requires milliseconds of at least 5000.`,
927927
InnerField: "behavior",
928928
},
929929
},
@@ -1016,7 +1016,7 @@ var webWebScrapeImages = requestflag.WithInnerFlags(cli.Command{
10161016
},
10171017
&requestflag.InnerFlag[string]{
10181018
Name: "timeout-opts.behavior",
1019-
Usage: `What to do at the deadline. "fail" returns 408 REQUEST_TIMEOUT without charging credits. "return-partial" returns usable results collected so far; if none are available, the request still fails without charging credits. Partial results are not cached as complete results. "return-partial" requires milliseconds of at least 15000.`,
1019+
Usage: `What to do at the deadline. "fail" returns 408 REQUEST_TIMEOUT without charging credits. "return-partial" returns usable results collected so far; if none are available, the request still fails without charging credits. Partial results are not cached as complete results. "return-partial" requires milliseconds of at least 5000.`,
10201020
InnerField: "behavior",
10211021
},
10221022
},
@@ -1167,7 +1167,7 @@ var webWebScrapeMd = requestflag.WithInnerFlags(cli.Command{
11671167
},
11681168
&requestflag.InnerFlag[string]{
11691169
Name: "timeout-opts.behavior",
1170-
Usage: `What to do at the deadline. "fail" returns 408 REQUEST_TIMEOUT without charging credits. "return-partial" returns usable results collected so far; if none are available, the request still fails without charging credits. Partial results are not cached as complete results. "return-partial" requires milliseconds of at least 15000.`,
1170+
Usage: `What to do at the deadline. "fail" returns 408 REQUEST_TIMEOUT without charging credits. "return-partial" returns usable results collected so far; if none are available, the request still fails without charging credits. Partial results are not cached as complete results. "return-partial" requires milliseconds of at least 5000.`,
11711171
InnerField: "behavior",
11721172
},
11731173
},

0 commit comments

Comments
 (0)