mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 16:07:15 +02:00
Run the Spec11 pipeline daily without sending emails
Add a sendSpec11Email parameter that allows us to only send the email on one run per month. Next, we will compute the diffs between the daily runs and send daily emails with those diffs. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=224404653
This commit is contained in:
parent
3ef8cd692d
commit
ec26e3a96a
20 changed files with 434 additions and 158 deletions
|
@ -21,22 +21,22 @@ import dagger.Provides;
|
|||
import google.registry.beam.spec11.Spec11Pipeline;
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.time.LocalDate;
|
||||
import javax.inject.Qualifier;
|
||||
import org.joda.time.YearMonth;
|
||||
|
||||
/** Module for dependencies required by Spec11 reporting. */
|
||||
@Module
|
||||
public class Spec11Module {
|
||||
|
||||
@Provides
|
||||
@Spec11ReportDirectory
|
||||
static String provideDirectoryPrefix(YearMonth yearMonth) {
|
||||
return Spec11Pipeline.getSpec11Subdirectory(yearMonth.toString("yyyy-MM"));
|
||||
@Spec11ReportFilePath
|
||||
static String provideSpec11ReportFilePath(LocalDate localDate) {
|
||||
return Spec11Pipeline.getSpec11ReportFilePath(localDate);
|
||||
}
|
||||
|
||||
/** Dagger qualifier for the subdirectory we stage to/upload from for Spec11 reports. */
|
||||
@Qualifier
|
||||
@Documented
|
||||
@Retention(RUNTIME)
|
||||
@interface Spec11ReportDirectory {}
|
||||
@interface Spec11ReportFilePath {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue