Sometimes Terraform Cloud user may need to cancel a run in the middle of its progress and then to start a new run for the same workspace.
In very rare situations, starting of the new run, for the same workspace, can result with
Error unlocking workspace: Locked by a run that is not discardable
The Terraform Cloud user cannot trigger new runs for specific workspace, because the workspace itself is locked by a previously cancelled run, reported as non-discardable.
In order fix this issue you need to manually lift the lock by following the steps below:
Navigate to the target Terraform Cloud workspace
Click on Settings
Click on Locking
Click on "force unlock" button
Then you should be able to trigger a new run into the target workspace
If you are unable to resolve the issue please contact support at email@example.com or submit a ticket via our support portal.