Files
DeepTutor/deeptutor/services/rag
georgelichen 8aac8b4061 Repair stale Pandas Arrow registrations before GraphRAG workers start (#1414)
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>
2026-09-14 01:28:18 +08:00
..
2026-04-28 12:00:11 +08:00
2026-06-17 00:56:27 +08:00
2026-06-17 00:56:27 +08:00