Closed dhpikolo closed 1 year ago
I have tried to reproduce the error with a smaller timeout value and expected a RetryError
client.create_batch(
request=request,
retry=None,
timeout=10,
metadata=(),
)
This did not had any effect on the polling timeout.
Hi @dhpikolo, timeout
you're passing in your snippet only affects create_batch
method, which creates an Operation object. So, essentially you're setting timeout
for creating an Operation object. What you want to do is set timeout
for the result of the operation. So, something like this:
operation = clien.create_batch(request)
response = operation.result(timeout=None) # infinite timeout (not recommended)
Can you try this?
I'm going to close this issue as a response was provided in https://github.com/googleapis/python-dataproc/issues/505#issuecomment-1378013402
Looks like with google_api_core version==2.11.0,
BatchControllerClient
cannot control the polling timeout.use case: I have a dataproc batches of longer duration (
>900secs
) being launched from my local machine and I run into this error.Environment details
3.7.10
22.2.2
google-cloud-dataproc
version:5.0.3
Steps to reproduce
Code example
Stack trace
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!