-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the ability to set synchronous timeout. #2761
Add the ability to set synchronous timeout. #2761
Conversation
Hi! I'm the modular magician, I work on Magic Modules. Pull request statusesNo diff detected in Ansible. New Pull RequestsI built this PR into one or more new PRs on other repositories, and when those are closed, this PR will also be merged and closed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have mild feelings about naming.
Also you should also be updating relevant docs, I think primarily https://www.terraform.io/docs/providers/google/guides/provider_reference.html .
Overall I think it's ok, but there are sharp edges that we should definitely document in a public facing location. EG: many requests are killed by googleapis server side at 30s, so a customer may bump this timeout and end up just seeing a different error message.
If the linked issue suffers from the server side timeout then this is not worth adding until we see an example API that would benefit from it.
@@ -70,6 +70,7 @@ type Config struct { | |||
Scopes []string | |||
BatchingConfig *batchingConfig | |||
UserProjectOverride bool | |||
SynchronousTimeout time.Duration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would lean towards "RequestTimeout" or "HTTPTimeout" as this is going to affect every request that Terraform makes to the API including polling of async resources.
Hi! I'm the modular magician, I work on Magic Modules. Pull request statusesterraform-provider-google-beta already has an open PR. New Pull RequestsI didn't open any new pull requests because of this PR. |
Hi! I'm the modular magician, I work on Magic Modules. Pull request statusesterraform-provider-google-beta already has an open PR. New Pull RequestsI didn't open any new pull requests because of this PR. |
Lots of passing integration tests - not going to wait for the full suite a second time, results are looking good. |
This is useful for old operations like DNS, which are synchronous but also long-running.
Tracked submodules are build/terraform-beta build/terraform-mapper build/terraform build/ansible build/inspec.
b6417b0
to
50ba065
Compare
This is useful for old operations like DNS, which are synchronous but also long-running.
This fixes hashicorp/terraform-provider-google#5008.
Release Note Template for Downstream PRs (will be copied)