ResourceModules
ResourceModules copied to clipboard
[Bug]: Lock removal is not 100% robust
Description
The removal of locks is unfortunately not 100% robust in that some pipeline still fail due to locks applied to the resources. Usually when checking set resource after, the lock is actually removed - leaving the impression that it's still a timing issue.
As it is currently implemented, we remove a lock and wait for a couple seconds before we continue. This is done as (while a lock is already removed) it takes some time for Azure to get that.
Maybe we should increase the wait time - of find another way...