Skip to content

feat: add async job mode to Docling Serve converter#3371

Open
2830500285 wants to merge 1 commit into
deepset-ai:mainfrom
2830500285:codex/docling-serve-async-jobs-3345
Open

feat: add async job mode to Docling Serve converter#3371
2830500285 wants to merge 1 commit into
deepset-ai:mainfrom
2830500285:codex/docling-serve-async-jobs-3345

Conversation

@2830500285
Copy link
Copy Markdown
Contributor

Summary

  • Add an async job mode for DoclingServeConverter that submits conversions to Docling Serve's async endpoints and polls until completion.
  • Support async jobs for both URL sources and uploaded file/ByteStream sources.
  • Preserve the existing synchronous mode as the default and cover serialization, failure handling, and sync/async execution paths with tests.

Closes #3345

Validation

  • SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0 uvx hatch run fmt-check src/haystack_integrations/components/converters/docling_serve/converter.py src/haystack_integrations/components/converters/docling_serve/init.py tests/test_converter.py
  • SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0 uvx hatch run test:unit tests/test_converter.py
  • SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0 uvx hatch run test:types

@2830500285 2830500285 requested a review from a team as a code owner June 1, 2026 05:09
@2830500285 2830500285 requested review from davidsbatista and removed request for a team June 1, 2026 05:09
@github-actions github-actions Bot added integration:docling-serve type:documentation Improvements or additions to documentation labels Jun 1, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2026

Coverage report (docling_serve)

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  integrations/docling_serve/src/haystack_integrations/components/converters/docling_serve
  converter.py 212, 219-226, 231-232, 321-322, 332-334, 357-358, 371-372, 375-390, 428-429, 439-441, 454-456, 565, 588-589
Project Total  

This report was generated by python-coverage-comment-action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration:docling-serve type:documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docling_serve: support the async-job endpoint for long-running conversions

1 participant