feat: enable users to define retry logic when using partition_via_api
#2948
Labels
enhancement
New feature or request
ingest
Issues related to the Ingest CLI or unstructured.ingest modules
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 meanspartition_via_api
andunstructured-ingest
(which depends onpartition_via_api
) have restricted functionality.Describe the solution you'd like
In
partition_via_api
,sdk.general.partition()
should be called with an optionalRetryConfig
: New parameters (strategy: str
,backoff: BackoffStrategy
, andretry_connection_errors: bool
) will need to be added topartition_via_api
sincerequest_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.The text was updated successfully, but these errors were encountered: