Commit e58e077
Fix orphaned worker processes on changelog generation timeout (#46464)
When changelog generation times out, the multiprocessing pool worker and
its child processes (azpysdk breaking) were not terminated, causing a race
condition where the finally block deleted stable.json while orphaned
processes were still running. This resulted in FileNotFoundError in the
breaking change checker.
Changes:
- execute_func_with_timeout now properly calls pool.terminate() and
pool.join() on timeout to kill worker processes before cleanup
- Extended spec-pull-request timeout from 900s to 1800s for large
packages like azure-mgmt-network
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 13e7deb commit e58e077
2 files changed
Lines changed: 17 additions & 3 deletions
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
44 | 58 | | |
45 | 59 | | |
46 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| |||
0 commit comments