From 8cdd337f6339a032c1ab4e067c38f452627cbe5e Mon Sep 17 00:00:00 2001 From: KimMin <291271447@qq.com> Date: Fri, 1 Dec 2017 01:15:04 +0800 Subject: [PATCH] Make WaitForClusterDisableTask configurable in yml (#1824) --- .../tasks/cluster/WaitForClusterDisableTask.groovy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/orca-clouddriver/src/main/groovy/com/netflix/spinnaker/orca/clouddriver/tasks/cluster/WaitForClusterDisableTask.groovy b/orca-clouddriver/src/main/groovy/com/netflix/spinnaker/orca/clouddriver/tasks/cluster/WaitForClusterDisableTask.groovy index b9a0ce9a42..ef60c80923 100644 --- a/orca-clouddriver/src/main/groovy/com/netflix/spinnaker/orca/clouddriver/tasks/cluster/WaitForClusterDisableTask.groovy +++ b/orca-clouddriver/src/main/groovy/com/netflix/spinnaker/orca/clouddriver/tasks/cluster/WaitForClusterDisableTask.groovy @@ -27,10 +27,13 @@ import com.netflix.spinnaker.orca.clouddriver.utils.HealthHelper import com.netflix.spinnaker.orca.pipeline.model.Stage import org.springframework.beans.factory.annotation.Autowired import org.springframework.stereotype.Component +import org.springframework.beans.factory.annotation.Value @Component class WaitForClusterDisableTask extends AbstractWaitForClusterWideClouddriverTask implements CloudProviderAware { - private static final int MINIMUM_WAIT_TIME_MS = 90000 + + @Value('${tasks.disableClusterMinTimeMillis:90000') + private int MINIMUM_WAIT_TIME_MS private final Map healthProviderNamesByPlatform