Spaces:
Sleeping

Lara Monteagudo Tubau commited on
Commit
762c8b6
·
1 Parent(s): 34890bc

Fix: executor resource leak and O(n²) lookup inefficiency

Browse files

- 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%.

2 files changed +3 -2
Files changed (2)
app.py+2-1
pipeline.py+1-1