Commit a329c46
feat: add configurable HTTP timeout for tool execution
httpx.request() was called without a timeout, defaulting to 5s.
Slow providers (e.g. Workday) regularly exceed this, causing
ReadTimeout errors.
- Add `timeout` field to `ExecuteConfig` (default 30s)
- Pass it through to `httpx.request()`
- Add `timeout` to `ExecuteToolsConfig` so users can set it at init:
`StackOneToolSet(execute={"account_ids": [...], "timeout": 60})`
- Thread timeout from toolset config through `_StackOneRpcTool`
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 9643f60 commit a329c46
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
252 | | - | |
| 253 | + | |
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
| |||
415 | 418 | | |
416 | 419 | | |
417 | 420 | | |
| 421 | + | |
418 | 422 | | |
419 | 423 | | |
420 | 424 | | |
| |||
423 | 427 | | |
424 | 428 | | |
425 | 429 | | |
| 430 | + | |
426 | 431 | | |
427 | 432 | | |
428 | 433 | | |
| |||
1185 | 1190 | | |
1186 | 1191 | | |
1187 | 1192 | | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
1188 | 1196 | | |
1189 | 1197 | | |
1190 | 1198 | | |
1191 | 1199 | | |
1192 | 1200 | | |
1193 | 1201 | | |
1194 | 1202 | | |
| 1203 | + | |
1195 | 1204 | | |
1196 | 1205 | | |
1197 | 1206 | | |
| |||
0 commit comments