Update from task dc1c1a08-0333-4442-b976-233ab1ad4cfb#28
Merged
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"
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was created by qwen-chat coder for task dc1c1a08-0333-4442-b976-233ab1ad4cfb.