mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
Make the async delete delay configurable in YAML config files
Since this has interactions with the recently added EPP resource caching, they both need to be configurable, otherwise the EPP resource caching time could not be set longer than the hard-coded async delete delay. This also adds comments to better clarify the interaction between the two. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=187179539
This commit is contained in:
parent
ce136f9285
commit
9e3fb8b93c
3 changed files with 10 additions and 3 deletions
|
@ -1026,8 +1026,8 @@ public final class RegistryConfig {
|
|||
*/
|
||||
@Provides
|
||||
@Config("asyncDeleteFlowMapreduceDelay")
|
||||
public static Duration provideAsyncDeleteFlowMapreduceDelay() {
|
||||
return Duration.standardSeconds(90);
|
||||
public static Duration provideAsyncDeleteFlowMapreduceDelay(RegistryConfigSettings config) {
|
||||
return Duration.standardSeconds(config.misc.asyncDeleteDelaySeconds);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue