-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Labels
type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
We are using a cloud function that, among others, calls DocumentAI. Assuming the latter has implemented the Retry dependency correctly, we have the following code that should retry when hitting a (retriable) quota limit:
result = doc_ai.process_document(
request={"name": PROCESSORS[processor_key],
"raw_document": {"content": self.content,
"mime_type": "application/pdf"}},
retry=retry.Retry(
predicate=retry.if_exception_type(exceptions.ResourceExhausted),
deadline=300)
)
document = result.document
However, the call is not retried as cloud logging shows:

Any clue ?
Metadata
Metadata
Assignees
Labels
type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.