Skip to content

Commit

Permalink
fixed plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jainishshah17 committed Jun 7, 2018
1 parent 2109e29 commit 0558f5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ha/inactiveServerCleaner/inactiveServerCleaner.groovy
Expand Up @@ -39,7 +39,7 @@ public class ArtifactoryInactiveServersCleaner {
for (member in allMembers) {
def heartbeat = TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis() - member.getLastHeartbeat())
def noHeartbeat = heartbeat > ConstantValues.haHeartbeatStaleIntervalSecs.getInt()
if (member.getServerState() == ArtifactoryServerState.UNAVAILABLE || noHeartbeat) {
if (member.getServerState() == ArtifactoryServerState.UNAVAILABLE || ( noHeartbeat && member.getServerState() != ArtifactoryServerState.CONVERTING && member.getServerState() != ArtifactoryServerState.STARTING )) {
try {
log.info "Inactive artifactory servers cleaning task found server ${member.serverId} to remove"
artifactoryServersCommonService.removeServer(member.serverId)
Expand Down

0 comments on commit 0558f5d

Please sign in to comment.