Skip to content

Add async API support for ibm_db Integration #3971

Description

@GeetikaChughIBM

Summary

The IBM Db2 Haystack integration currently only supports synchronous
pipeline execution. This issue tracks adding full async support using
the AsyncConnection and AsyncCursor APIs introduced in ibm_db 3.3.0,
so the integration can participate in await pipeline.run_async(...) calls.

Motivation

Haystack's Pipeline now exposes run_async() / run_async_generator().
Components that implement async def run_async(...) can participate in
async pipeline execution. The IBM Db2 integration is currently sync-only,
which blocks users who want to run Db2-backed pipelines asynchronously
alongside other async components.

ibm_db 3.3.0 (released) introduces a native asyncio API
(AsyncConnection, AsyncCursor) that wraps synchronous IBM CLI calls
in asyncio.to_thread(), making it possible to add async support without
any additional runtime dependencies beyond Python's standard asyncio.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions