You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an app on app platform that consists of some jobs and a service which I deploy with terraform. I recently added a job with kind "FAILED_DEPLOY" which is intended to run after my service has failed deployment.
Since adding this, I've noticed that apply runs fr the digitalocean_app resource will hit the 30 minute timeout. I had a quick browse of the code for that resource and suspect that the polling does not take into account that in a successful deploy, the FAILED_DEPLOY step should never be ran. I think that it is waiting to see that step as complete when it never is. Here is the part of the code I'm referring to.
Affected Resource(s)
digitalocean_app
Expected Behavior
My deployment should succeed
Actual Behavior
The deployment succeeds in the digital ocean user interface, but the terraform apply hits the timeout.
Steps to Reproduce
Terraform version
v1.5.7
Debug Output
Panic Output
Additional context
Important Factoids
References
The text was updated successfully, but these errors were encountered:
* Rework deployment logic
This commit modifies the logic used by the `digitalocean_app` resource to check each step for a success
status rather than using the counts of steps. The step counting method fails to work with jobs of kind
`FAILED_DEPLOY` as these will always be pending, meaning that any app deployed with a job of this type
will always time out even when it is successful.
Closes#1047
Signed-off-by: David Bond <[email protected]>
* Add FAILED_DEPLOY job to acceptance tests.
* Run terrafmt on new test case.
---------
Signed-off-by: David Bond <[email protected]>
Co-authored-by: Andrew Starr-Bochicchio <[email protected]>
Bug Report
Describe the bug
I have an app on app platform that consists of some jobs and a service which I deploy with terraform. I recently added a job with kind
"FAILED_DEPLOY"
which is intended to run after my service has failed deployment.Since adding this, I've noticed that apply runs fr the
digitalocean_app
resource will hit the 30 minute timeout. I had a quick browse of the code for that resource and suspect that the polling does not take into account that in a successful deploy, theFAILED_DEPLOY
step should never be ran. I think that it is waiting to see that step as complete when it never is. Here is the part of the code I'm referring to.Affected Resource(s)
Expected Behavior
My deployment should succeed
Actual Behavior
The deployment succeeds in the digital ocean user interface, but the terraform apply hits the timeout.
Steps to Reproduce
Terraform version
v1.5.7
Debug Output
Panic Output
Additional context
Important Factoids
References
The text was updated successfully, but these errors were encountered: