Skip to content

Commit 4bf04a3

Browse files
bosdclaude
andcommitted
fix: add logging around thread pool shutdown to diagnose hanging
Added info-level logging before and after executor.shutdown() to help identify if the thread pool shutdown is causing imports to hang at the end of pass 1. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 24ed6be commit 4bf04a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/odoo_data_flow/import_threaded.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1909,7 +1909,9 @@ def _run_threaded_pass( # noqa: C901
19091909
if futures and successful_batches == 0:
19101910
log.error("Aborting import: All processed batches failed.")
19111911
rpc_thread.abort_flag = True
1912+
log.info("All batches processed, shutting down thread pool...")
19121913
rpc_thread.executor.shutdown(wait=True, cancel_futures=True)
1914+
log.info("Thread pool shutdown complete")
19131915
rpc_thread.progress.update(
19141916
rpc_thread.task_id,
19151917
description=original_description,

0 commit comments

Comments
 (0)