Retry delete/copies if file is locked?
ATimson
Posts: 15 Bronze 1
We're having some issues with our website deploys. We have "RedGatePurgePackageDirectoryBeforeCopy" set to true, so that the old files will be purged.
However, we're running into issues that seem to be related to file contention. We'll get errors like this:
2014-08-12 16:39:34 -04:00 ERROR Access to the path 'D:\Deploy\ClientName\Admin\Styles' is denied.
Looking out at the directory afterwards, the delete has clearly been successful, so RGDM just needed to wait a second or two.
Is there any mechanism to allow RGDM to retry if it has some sort of file access error?
However, we're running into issues that seem to be related to file contention. We'll get errors like this:
2014-08-12 16:39:34 -04:00 ERROR Access to the path 'D:\Deploy\ClientName\Admin\Styles' is denied.
Looking out at the directory afterwards, the delete has clearly been successful, so RGDM just needed to wait a second or two.
Is there any mechanism to allow RGDM to retry if it has some sort of file access error?
Comments
Redgate Software
Example #1:
Example #2: