Skip to content

Commit

Permalink
fix(tasks): limit task maxBackoff time to 2min (#3193)
Browse files Browse the repository at this point in the history
  • Loading branch information
asher committed Sep 24, 2019
1 parent 8a7f9a1 commit c104a23
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.netflix.spinnaker.orca;

import com.netflix.spinnaker.orca.pipeline.model.Stage;
import java.util.concurrent.TimeUnit;

/**
* TaskExecutionInterceptor is a hook point to customize the specific execution of a task.
Expand All @@ -37,7 +38,7 @@
public interface TaskExecutionInterceptor {

default long maxTaskBackoff() {
return Long.MAX_VALUE;
return TimeUnit.MINUTES.toMillis(2);
}

default Stage beforeTaskExecution(Task task, Stage stage) {
Expand Down

0 comments on commit c104a23

Please sign in to comment.