We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b005064 commit 0487890Copy full SHA for 0487890
AzureWebFarm.OctopusDeploy/Infrastructure/OctopusDeploy.cs
@@ -77,25 +77,6 @@ private void HandleFailedRemoval()
77
}
78
79
public void DeleteMachine()
80
- {
81
- var remainingAttempts = 5;
82
- while (remainingAttempts > 0)
83
84
- try
85
86
- DeleteMachineInternal();
87
- return;
88
- }
89
- catch (Exception e)
90
91
- remainingAttempts--;
92
- Log.Error(e, "Initial attempt to remove machine from Octopus repository failed. Will retry {attempts} time(s).", remainingAttempts);
93
- Thread.Sleep(TimeSpan.FromSeconds(3));
94
95
96
97
-
98
- private void DeleteMachineInternal()
99
{
100
var machine = _repository.Machines.FindByName(_machineName);
101
_repository.Machines.Delete(machine);
0 commit comments