Commit 84654f8
fix: handle RejectedExecutionException in all analysis submit paths
After shutdownNow() cancels stuck threads, subsequent executor.submit()
calls throw RejectedExecutionException. This crashed the batch processing
loop instead of gracefully skipping the rejected files.
Fix: wrap all 3 executor.submit() call sites (run, runIndex, processSmartBatch)
with try/catch for RejectedExecutionException — log warning and skip file.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 4a5b31b commit 84654f8
1 file changed
Lines changed: 12 additions & 0 deletions
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| 264 | + | |
264 | 265 | | |
265 | 266 | | |
266 | 267 | | |
| |||
292 | 293 | | |
293 | 294 | | |
294 | 295 | | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
295 | 299 | | |
296 | 300 | | |
297 | 301 | | |
| |||
557 | 561 | | |
558 | 562 | | |
559 | 563 | | |
| 564 | + | |
560 | 565 | | |
561 | 566 | | |
562 | 567 | | |
| |||
585 | 590 | | |
586 | 591 | | |
587 | 592 | | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
588 | 596 | | |
589 | 597 | | |
590 | 598 | | |
| |||
930 | 938 | | |
931 | 939 | | |
932 | 940 | | |
| 941 | + | |
933 | 942 | | |
934 | 943 | | |
935 | 944 | | |
| |||
958 | 967 | | |
959 | 968 | | |
960 | 969 | | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
961 | 973 | | |
962 | 974 | | |
963 | 975 | | |
| |||
0 commit comments