From f30b87d40e18e0ccef3e79f39334f496562d5370 Mon Sep 17 00:00:00 2001 From: ctingue Date: Fri, 13 Jan 2017 09:26:20 -0800 Subject: [PATCH] Add ExpandRecurringBillingEventsAction cron job Note that this merely starts this MR on a daily schedule -- the billing queries that ultimately consume the synthetic OneTime events are filtering out the events at this time, so we're still relying on query-time expansion of Recurrings. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=144450565 --- .../batch/ExpandRecurringBillingEventsAction.java | 2 -- .../registry/env/alpha/default/WEB-INF/cron.xml | 11 +++++++++++ .../registry/env/production/default/WEB-INF/cron.xml | 11 +++++++++++ .../registry/env/sandbox/default/WEB-INF/cron.xml | 11 +++++++++++ 4 files changed, 33 insertions(+), 2 deletions(-) diff --git a/java/google/registry/batch/ExpandRecurringBillingEventsAction.java b/java/google/registry/batch/ExpandRecurringBillingEventsAction.java index f511453de..51c6d2517 100644 --- a/java/google/registry/batch/ExpandRecurringBillingEventsAction.java +++ b/java/google/registry/batch/ExpandRecurringBillingEventsAction.java @@ -66,8 +66,6 @@ import org.joda.time.DateTime; * {@code cursorTime}) represents the inclusive lower bound on the range of billing times that will * be expanded as a result of the job (the exclusive upper bound being the execution time of the * job). - * - *

NOTE: This is not yet production ready and not configured to run. */ @Action(path = "/_dr/task/expandRecurringBillingEvents") public class ExpandRecurringBillingEventsAction implements Runnable { diff --git a/java/google/registry/env/alpha/default/WEB-INF/cron.xml b/java/google/registry/env/alpha/default/WEB-INF/cron.xml index 824faa78c..4c5b8e781 100644 --- a/java/google/registry/env/alpha/default/WEB-INF/cron.xml +++ b/java/google/registry/env/alpha/default/WEB-INF/cron.xml @@ -144,6 +144,17 @@ backend + + + + This job runs a mapreduce that creates synthetic OneTime billing events from Recurring billing + events. Events are created for all instances of Recurring billing events that should exist + between the RECURRING_BILLING cursor's time and the execution time of the mapreduce. + + every day 03:00 + backend + + diff --git a/java/google/registry/env/production/default/WEB-INF/cron.xml b/java/google/registry/env/production/default/WEB-INF/cron.xml index c186eef22..e73efee3e 100644 --- a/java/google/registry/env/production/default/WEB-INF/cron.xml +++ b/java/google/registry/env/production/default/WEB-INF/cron.xml @@ -155,6 +155,17 @@ backend + + + + This job runs a mapreduce that creates synthetic OneTime billing events from Recurring billing + events. Events are created for all instances of Recurring billing events that should exist + between the RECURRING_BILLING cursor's time and the execution time of the mapreduce. + + every day 03:00 + backend + + diff --git a/java/google/registry/env/sandbox/default/WEB-INF/cron.xml b/java/google/registry/env/sandbox/default/WEB-INF/cron.xml index f52d2c73e..7cafe75e9 100644 --- a/java/google/registry/env/sandbox/default/WEB-INF/cron.xml +++ b/java/google/registry/env/sandbox/default/WEB-INF/cron.xml @@ -62,6 +62,17 @@ backend + + + + This job runs a mapreduce that creates synthetic OneTime billing events from Recurring billing + events. Events are created for all instances of Recurring billing events that should exist + between the RECURRING_BILLING cursor's time and the execution time of the mapreduce. + + every day 03:00 + backend + +