microsoft / azure-pipelines-terraform

Azure Pipelines tasks for installing Terraform and running Terraform commands in a build or release pipeline.
MIT License
101 stars 62 forks source link

Locks should be released when cancelling #139

Closed quails4Eva closed 1 year ago

quails4Eva commented 1 year ago

Currently if a pipeline is cancelled during the Plan task it can leave a lock on the terraform state file which prevents further terraform tasks until someone manually breaks the lease. The task (and any other tasks that obtain locks) should attempt to relinquish all locks it's obtained when it receives a cancellation notice.

Using Azure backend, state in blob storage.

mericstam commented 1 year ago

duplicate #31