mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-03 18:51:27 +08:00
Pandas registers the period and interval Arrow extension types as an import side effect, while reload or dynamic import hooks can remove the module without clearing pyarrow's process-local registry. Prepare the extension module inside the isolated GraphRAG worker and recover only the known stale-registration error before retrying the import. Constraint: GraphRAG is an optional dependency and its imports must remain inside the isolated worker thread Rejected: warning filters and BLAS thread limits | the failure is a raised ArrowKeyError during module registration, not a warning or numeric thread race Confidence: high Scope-risk: narrow Reversibility: clean Directive: Keep the recovery limited to pandas.period/pandas.interval and the exact duplicate-registration error Tested: targeted GraphRAG tests (87 passed, 2 skipped); subprocess regression on pandas 3.0.0/pyarrow 25.0.1 and pandas 2.3.3/pyarrow 22.0.0; Ruff, format, compileall, git diff --check Not-tested: full GraphRAG indexing with external model services; pyright without optional GraphRAG dependencies Co-authored-by: Chen Li <george_lichne@163.com>