Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

avoid deadlocks when starting the terraform lifecycle step #967

Merged

Conversation

laverya
Copy link
Member

@laverya laverya commented Jun 11, 2019

What I Did

In #937, a lock was added to prevent the "have all required steps been completed" checker from not including the previous step. This PR modifies the lock logic to first check if all required steps are completed before waiting for the currently running step to complete, and only waiting if there are incomplete steps.

This resolves an issue encountered with some terraform steps that produce large plans.

How I Did it

How to verify it

Description for the Changelog

Resolved an issue encountered with some terraform steps.

Picture of a Ship (not required but encouraged)

USS Elliot (DD-967)

@laverya laverya requested a review from areed June 11, 2019 00:32
@laverya laverya merged commit 06efaeb into replicatedhq:master Jun 11, 2019
@laverya laverya deleted the fix-terraform-lifecycle-deadlock branch June 11, 2019 20:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants