Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(docvision): add retry mechanism to predict_layout #124

Merged
merged 3 commits into from
Feb 27, 2025

Conversation

awwaawwa
Copy link
Member

This PR adds a retry mechanism to the predict_layout function in the document vision module.

Changes:

  • Implement retry logic using the tenacity library
  • Add exponential backoff strategy with 3 retry attempts
  • Add proper logging for retry attempts
  • Add tenacity dependency to pyproject.toml

Benefits:

  • Improves reliability when the document layout service is temporarily unavailable
  • Prevents immediate failure when network issues occur
  • Uses industry standard patterns for retry with exponential backoff

- Bump babeldoc version to 0.1.14
- Update package version specifiers for various dependencies
- Refresh lock file with latest package versions
Update version number across project files:
- Increment version in pyproject.toml
- Update __version__ in __init__.py, const.py, and main.py
@awwaawwa awwaawwa merged commit a86406b into main Feb 27, 2025
8 of 10 checks passed
@awwaawwa awwaawwa deleted the feat/add-retry-mechanism branch February 27, 2025 12:25
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.

1 participant