Fix: executor resource leak and O(n²) lookup inefficiency
Lara Monteagudo Tubau
762c8b6
- pipeline.py: Change executor.shutdown(wait=False) to wait=True to prevent
worker threads from leaking when caller cancels. Threads now complete
before generator returns.
- app.py fn_run_all_boundaries: Pre-build failed_sids set (O(1) lookup)
instead of checking pstats.results with any() per section (O(n²)).
Reduces loop overhead for 20 sections by ~98%.