Skip to content
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

Rework deployment logic #1048

Merged
merged 3 commits into from
Oct 12, 2023
Merged

Rework deployment logic #1048

merged 3 commits into from
Oct 12, 2023

Conversation

davidsbond
Copy link
Contributor

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

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]>
Copy link
Member

@andrewsomething andrewsomething left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for flagging this issue and providing a great solution! 🙏

I did push one additional commit adding a FAILED_DEPLOY job to the existing acceptance test for app platform jobs.

@andrewsomething andrewsomething merged commit 74bddda into digitalocean:main Oct 12, 2023
2 checks passed
@davidsbond
Copy link
Contributor Author

Thanks very much @andrewsomething! Been really easy using app platform, DO in general and this terraform provider. Really good work from y'all and happy to contribute!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FAILED_DEPLOY jobs cause infinite polling on app deployment
2 participants