Skip to content

feat: enable users to define retry logic when using partition_via_api #51

Open
@Coniferish

Description

@Coniferish

Is your feature request related to a problem? Please describe.
partition_via_api does not accept arguments for defining the retry logic to be used by the python client. This means partition_via_api and unstructured-ingest (which depends on partition_via_api) have restricted functionality.

Describe the solution you'd like
In partition_via_api, sdk.general.partition() should be called with an optional RetryConfig: New parameters (strategy: str, backoff: BackoffStrategy, and retry_connection_errors: bool) will need to be added to partition_via_api since request_kwargs is used for all of the partition and chunking parameters. These new params should be used to init a RetryConfig object.

In addition to updating partition_via_api, unstructured-ingest also needs to be updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions