Task manager update to run individual tasks

This commit is contained in:
Duncan Sommerville 2015-06-30 11:46:58 -04:00
parent 7dd69da614
commit 04fe265538
2 changed files with 30 additions and 10 deletions

View file

@ -130,9 +130,11 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
protected function _initTasks() {
/* We need to wrap this here so that we aren't checking when we're running the unit test suite
*/
$taskManager = TaskManager::getInstance();
$taskManager->runTask(AirtimeTask::UPGRADE); // Run the upgrade on each request (if it needs to be run)
if (getenv("AIRTIME_UNIT_TEST") != 1) {
//This will do the upgrade too if it's needed...
TaskManager::getInstance()->runTasks();
$taskManager->runTasks();
}
}