-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
All resources should have configurable timeouts #3954
Comments
The merged PR fixes most of these. Here's a list of resources which, according to their documentation, don't support timeouts (
I didn't bother checking whether the docs+code matched. Also, no IAM resources support timeouts as far as I'm aware. Before doing IAM ones, we'd probably want to convert the eventual consistency checks into the framework introduced in #4993. For resources with synchronous calls, we could add retry logic which takes a timeout. For extra credit, we could send a context with a timeout into the request that we send, though I think our synchronous calls tend to return quickly, so I don't think it would really be worth it. |
…e Checks (hashicorp#3954) Signed-off-by: Modular Magician <[email protected]>
…e Checks (#3954) (#7499) Signed-off-by: Modular Magician <[email protected]>
I'm currently running into the lack of timeout support for My specific case could be mitigated by hashicorp/terraform-provider-archive#62. I'm now stuck considering how to reimplement my archive handling because my upload bandwidth is constrained (or the error is obfuscating a deeper problem). |
Hey @grayside, you'll probably have better luck filing a new issue specifically for that resource :) |
And we should get rid of the OperationWait() methods that don't have them so that we can guarantee across the codebase that we're using them.
Inspired by GoogleCloudPlatform/magic-modules#2001, where a user caught a bug where one of our resources had a timeouts block declared, but it wasn't used everywhere, and so their timeouts didn't work. In the past, we could make the case that the user should check the docs to see which resources do and don't support timeouts, but it's harder to make now that we have so many resources that do, and so few that don't.
The text was updated successfully, but these errors were encountered: