← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18426: Change the time when scheduled aggregation queries happen to 11pm

 

------------------------------------------------------------
revno: 18426
committer: Tran Chau<tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-02-26 16:57:07 +0700
message:
  Change the time when scheduled aggregation queries happen to 11pm
modified:
  dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/scheduling/Scheduler.java
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/java/org/hisp/dhis/trackedentity/action/schedule/ScheduleCaseAggregateConditionAction.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/scheduling/Scheduler.java'
--- dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/scheduling/Scheduler.java	2015-02-17 13:27:11 +0000
+++ dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/scheduling/Scheduler.java	2015-02-26 09:57:07 +0000
@@ -34,6 +34,7 @@
 public interface Scheduler
 {
     final String CRON_DAILY_0AM = "0 0 0 * * ?";
+    final String CRON_DAILY_11PM = "0 0 23 * * ?";
     final String CRON_EVERY_MIN = "0 0/1 * * * ?";
     final String CRON_EVERY_15MIN = "0 0/15 * * * ?";
     final String CRON_TEST = "0 * * * * ?";

=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/java/org/hisp/dhis/trackedentity/action/schedule/ScheduleCaseAggregateConditionAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/java/org/hisp/dhis/trackedentity/action/schedule/ScheduleCaseAggregateConditionAction.java	2015-01-17 07:41:26 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/java/org/hisp/dhis/trackedentity/action/schedule/ScheduleCaseAggregateConditionAction.java	2015-02-26 09:57:07 +0000
@@ -157,7 +157,7 @@
                 Map<String, String> keyCronMap = new HashMap<>();
 
                 keyCronMap.put( CaseAggregateConditionSchedulingManager.TASK_AGGREGATE_QUERY_BUILDER,
-                    Scheduler.CRON_DAILY_0AM );
+                    Scheduler.CRON_DAILY_11PM );
 
                 schedulingManager.scheduleTasks( keyCronMap );
             }