if (null != job) {
job.lastRunTime = new Date();
job.nextRunTime = job.lastRunTime.getTime();
if (!_bLocalMode) {
// Need to store the times or they just get lost between here and the job completion check
MongoDbManager.getCustom().getLookup().save(job.toDb());
// (not that efficient, but this is essentially a DB call so whatever)
}
initializeJob(job);
}
}