-
- All Implemented Interfaces:
-
com.netflix.spinnaker.kork.plugins.api.internal.SpinnakerExtensionPoint,com.netflix.spinnaker.orca.api.pipeline.Task,org.pf4j.ExtensionPoint
@Beta() public interface RetryableTask implements Task
A retryable task defines its backoff period (the period between delays) and its timeout (the total period of the task)
-
-
Method Summary
Modifier and Type Method Description abstract longgetBackoffPeriod()TODO(rz): Use Duration. abstract longgetTimeout()TODO(rz): Use Duration. longgetDynamicTimeout(StageExecution stage)longgetDynamicBackoffPeriod(Duration taskDuration)longgetDynamicBackoffPeriod(StageExecution stage, Duration taskDuration)-
Methods inherited from class com.netflix.spinnaker.orca.api.pipeline.Task
aliases, execute, onCancel, onCancelWithResult, onTimeout -
Methods inherited from class com.netflix.spinnaker.kork.plugins.api.internal.SpinnakerExtensionPoint
getExtensionClass, getPluginId -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getBackoffPeriod
abstract long getBackoffPeriod()
TODO(rz): Use Duration.
-
getTimeout
abstract long getTimeout()
TODO(rz): Use Duration.
-
getDynamicTimeout
long getDynamicTimeout(StageExecution stage)
-
getDynamicBackoffPeriod
long getDynamicBackoffPeriod(Duration taskDuration)
-
getDynamicBackoffPeriod
long getDynamicBackoffPeriod(StageExecution stage, Duration taskDuration)
-
-
-
-