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

parallel_plan blocks multiple environments using the default workspace #1618

Open
jrobison-sb opened this issue Jun 4, 2021 · 1 comment · May be fixed by #4997
Open

parallel_plan blocks multiple environments using the default workspace #1618

jrobison-sb opened this issue Jun 4, 2021 · 1 comment · May be fixed by #4997
Labels

Comments

@jrobison-sb
Copy link

I've got a repository with multiple environments structured like this:

terraform/environments/dev
terraform/environments/test
terraform/environments/prod

Each environment uses only the default workspace.

When I enable parallel_plan: true, this breaks Atlantis' ability to run plans in parallel as expected, with the error saying The default workspace is currently locked by another command that is running for this pull request.

Atlantis shouldn't behave this way because each environment is separate and each plan lock is based on the directory: "msg": "acquired lock with id \"terraform/environments/production/default\"",. A lock with ID terraform/environments/production/default shouldn't block Atlantis from simultaneously using another lock with ID terraform/environments/test/default.

@brandon-fryslie
Copy link

I was suffering from this same issue. Here is a potential workaround: #260 (comment)

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

Successfully merging a pull request may close this issue.

2 participants