Rename async flow failure backoff config property

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=118207124
This commit is contained in:
ctingue 2016-03-25 08:26:36 -07:00 committed by Justine Tunney
parent 0c001d805c
commit f9e1bab1d2
3 changed files with 4 additions and 4 deletions

View file

@ -253,10 +253,10 @@ public interface RegistryConfig {
public Duration getAsyncDeleteFlowMapreduceDelay(); public Duration getAsyncDeleteFlowMapreduceDelay();
/** /**
* Returns the amount of time to back off following an async delete flow task failure. * Returns the amount of time to back off following an async flow task failure.
* *
* This should be ~orders of magnitude larger than the rate on the queue, in order to prevent * This should be ~orders of magnitude larger than the rate on the queue, in order to prevent
* the logs from filling up with unnecessarily failures. * the logs from filling up with unnecessarily failures.
*/ */
public Duration getAsyncDeleteFlowFailureBackoff(); public Duration getAsyncFlowFailureBackoff();
} }

View file

@ -190,7 +190,7 @@ public class TestRegistryConfig implements RegistryConfig {
} }
@Override @Override
public Duration getAsyncDeleteFlowFailureBackoff() { public Duration getAsyncFlowFailureBackoff() {
return Duration.standardMinutes(10); return Duration.standardMinutes(10);
} }
} }

View file

@ -52,7 +52,7 @@ public final class AsyncFlowUtils {
logger.infofmt("Enqueueing async mapreduce action with path %s and params %s", path, params); logger.infofmt("Enqueueing async mapreduce action with path %s and params %s", path, params);
// Aggressively back off if the task fails, to minimize flooding the logs. // Aggressively back off if the task fails, to minimize flooding the logs.
RetryOptions retryOptions = RetryOptions.Builder.withMinBackoffSeconds( RetryOptions retryOptions = RetryOptions.Builder.withMinBackoffSeconds(
RegistryEnvironment.get().config().getAsyncDeleteFlowFailureBackoff().getStandardSeconds()); RegistryEnvironment.get().config().getAsyncFlowFailureBackoff().getStandardSeconds());
TaskOptions options = TaskOptions.Builder TaskOptions options = TaskOptions.Builder
.withUrl(path) .withUrl(path)
.retryOptions(retryOptions) .retryOptions(retryOptions)