Skip to content

fix: retry failed MinerU URL tasks via direct upload - #319

Merged
suguanYang merged 1 commit into
mainfrom
fix/wangbinqi/mineru-url-fallback
Aug 24, 2026
Merged

fix: retry failed MinerU URL tasks via direct upload#319
suguanYang merged 1 commit into
mainfrom
fix/wangbinqi/mineru-url-fallback

Conversation

@suguanYang

Copy link
Copy Markdown
Contributor

Summary

  • distinguish terminal MinerU task failures from unrelated PDF polling errors
  • retry accepted S3 URL-mode tasks once through MinerU direct upload when polling reports state=failed
  • preserve direct-upload-first behavior and prevent retry loops, with focused regression coverage

Test plan

  • uv run --package knowhere-worker-app pytest apps/worker/tests/unit/test_mineru_pdf_service.py apps/worker/tests/unit/test_mineru_task_polling.py -q
  • uv run ruff check on changed implementation and test files
  • uv run pyright on changed implementation and test files
  • git diff --check

Made with Cursor

Fall back once to direct upload when an accepted URL-mode task reaches a terminal failed state, avoiding AWS URL accessibility failures without retrying unrelated polling errors.

Co-authored-by: Cursor <cursoragent@cursor.com>
@suguanYang
suguanYang merged commit 97cd776 into main Aug 24, 2026
6 checks passed
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