29 lines
1.0 KiB
Markdown
29 lines
1.0 KiB
Markdown
# Running Python code in a subprocess with a time limit — Simon Willison's TIL
|
|||
|
|
|
||
|
|
## Metadata
|
||
|
|
|
||
|
|
| Field | Value |
|
||
|
|
|---|---|
|
||
|
|
| Institute | Molodetz Institute — Research & Retrieval Division |
|
||
|
|
| Subject | async-pty-process-testing |
|
||
|
|
| Document type | Source Citation Card |
|
||
|
|
| Tier | 2 |
|
||
|
|
| Source title | Running Python code in a subprocess with a time limit |
|
||
|
|
| Source URL | https://til.simonwillison.net/python/subprocess-time-limit |
|
||
|
|
| Source type | blog post |
|
||
|
|
| Date researched | 2026-10-09 |
|
||
|
|
| Researched by | tai (agent), model: Claude Sonnet 5, on behalf of retoor |
|
||
|
|
| Research method | Search aggregator result listing (not independently opened or quoted) |
|
||
|
|
| Confidence | Not independently verified |
|
||
|
|
| Status | Active |
|
||
|
|
|
||
|
|
## Why it's here
|
||
|
|
|
||
|
|
Surfaced by the "asyncio subprocess timeout kill process group" search query as a "today I learned" note on enforcing a subprocess time limit; not individually opened or quoted during this research pass.
|
||
|
|
|
||
|
|
## Changelog
|
||
|
|
|
||
|
|
| Date | Change |
|
||
|
|
|---|---|
|
||
|
|
| 2026-10-09 | Logged as consulted-but-not-analyzed. |
|