reschedule all polocies after management server restart, in case some schedules are missing

This commit is contained in:
anthony 2010-11-08 14:03:10 -08:00
parent 71a670defc
commit 3aad88e94b
1 changed files with 5 additions and 0 deletions

View File

@ -337,6 +337,11 @@ public class SnapshotSchedulerImpl implements SnapshotScheduler {
@Override @DB
public boolean start() {
// reschedule all policies after management restart
List<SnapshotPolicyVO> policyInstances = _snapshotPolicyDao.listAll();
for( SnapshotPolicyVO policyInstance : policyInstances) {
scheduleNextSnapshotJob(policyInstance);
}
if (_testTimerTask != null) {
_testClockTimer = new Timer("TestClock");
// Run the test clock every 60s. Because every tick is counted as 1 minute.