Skip to content

Update from task dc1c1a08-0333-4442-b976-233ab1ad4cfb#28

Merged
aihlp merged 1 commit into
mainfrom
синхронизация-icd-11-с-ошибками-d4cfb
Jun 28, 2026

Hidden character warning

The head ref may contain hidden characters: "\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f-icd-11-\u0441-\u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438-d4cfb"
Merged

Update from task dc1c1a08-0333-4442-b976-233ab1ad4cfb#28
aihlp merged 1 commit into
mainfrom
синхронизация-icd-11-с-ошибками-d4cfb

Conversation

@aihlp

@aihlp aihlp commented Jun 28, 2026

Copy link
Copy Markdown
Owner

This PR was created by qwen-chat coder for task dc1c1a08-0333-4442-b976-233ab1ad4cfb.

- Added detect_stuck_state and recover_from_stuck_state functions in src/core/db.py to identify and fix databases with no PENDING nodes
- Enhanced extract_child_uris in src/fetchers/who_client.py to handle 'release' and 'latestRelease' fields for root node traversal
- Modified main_async in src/fetchers/who_client.py to check for stuck state before processing and attempt recovery
- Updated database schema initialization in src/core/db.py to ensure proper indexes for status and icd_code queries
- Improved error handling and logging in the sync process to provide better visibility into progress and issues

The changes address the core issue of the sync process getting stuck in a dead state by adding explicit detection and recovery mechanisms, while also improving the robustness of child node discovery.
@aihlp aihlp merged commit 1713be7 into main Jun 28, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants