Lower poll interval for checking import status of podcast episodes

This commit is contained in:
Duncan Sommerville 2015-11-11 18:52:12 -05:00
parent c43b45a7ba
commit 8a5c25291e
3 changed files with 15 additions and 3 deletions

View file

@ -73,6 +73,7 @@ class ApiController extends Zend_Controller_Action
->addActionContext('update-replay-gain-value' , 'json')
->addActionContext('update-cue-values-by-silan' , 'json')
->addActionContext('get-usability-hint' , 'json')
->addActionContext('poll-celery' , 'json')
->initContext();
}
@ -100,6 +101,14 @@ class ApiController extends Zend_Controller_Action
exit();
}
public function pollCeleryAction() {
$this->view->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
$taskManager = TaskManager::getInstance();
$taskManager->runTask(TaskFactory::CELERY);
}
public function versionAction()
{
$this->_helper->json->sendJson( array(