Skip to content

Batch service: Wait for completion

Poll a batch session until KSeF reports a terminal status.

Called on auth.batch
Source src/ksef2/services/batch.py:342 Generated from async source src/ksef2/services/async_batch.py
auth.batch.wait_for_completion
auth.batch.wait_for_completion(*, session: str | BatchSessionState | BatchSessionClient, timeout: float = 120.0, poll_interval: float = 2.0) -> SessionStatusResponse

Returns

SessionStatusResponse

Parameters

session str | BatchSessionState | BatchSessionClient
required / keyword-only
timeout float
default 120.0 / keyword-only
poll_interval float
default 2.0 / keyword-only
Called on auth.batch
Source src/ksef2/services/async_batch.py:344 Authored source
await auth.batch.wait_for_completion
await auth.batch.wait_for_completion(*, session: str | BatchSessionState | AsyncBatchSessionClient, timeout: float = 120.0, poll_interval: float = 2.0) -> SessionStatusResponse

Returns

SessionStatusResponse

Parameters

session str | BatchSessionState | AsyncBatchSessionClient
required / keyword-only
timeout float
default 120.0 / keyword-only
poll_interval float
default 2.0 / keyword-only