Skip to content

Commit

Permalink
feat(job): decrease job timout and make overridable (#1649)
Browse files Browse the repository at this point in the history
  • Loading branch information
emjburns authored Sep 27, 2017
1 parent 0d9a2f1 commit ca4fa9c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import com.fasterxml.jackson.core.type.TypeReference
import com.fasterxml.jackson.databind.ObjectMapper
import com.netflix.frigga.Names
import com.netflix.spinnaker.orca.ExecutionStatus
import com.netflix.spinnaker.orca.RetryableTask
import com.netflix.spinnaker.orca.OverridableTimeoutRetryableTask
import com.netflix.spinnaker.orca.TaskResult
import com.netflix.spinnaker.orca.clouddriver.KatoRestService
import com.netflix.spinnaker.orca.clouddriver.tasks.AbstractCloudProviderAwareTask
Expand All @@ -30,9 +30,9 @@ import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Component

@Component
public class WaitOnJobCompletion extends AbstractCloudProviderAwareTask implements RetryableTask {
public class WaitOnJobCompletion extends AbstractCloudProviderAwareTask implements OverridableTimeoutRetryableTask {
long backoffPeriod = TimeUnit.SECONDS.toMillis(10)
long timeout = TimeUnit.DAYS.toMillis(1)
long timeout = TimeUnit.HOURS.toMillis(2)

@Autowired
KatoRestService katoRestService
Expand Down

0 comments on commit ca4fa9c

Please sign in to comment.