Rename CeleryService to avoid confusion; fix wording and reduce redundancy in task functions

This commit is contained in:
Duncan Sommerville 2015-09-15 15:06:03 -04:00
parent a444751397
commit 7b76c8d6d3
4 changed files with 37 additions and 31 deletions

View file

@ -237,14 +237,14 @@ class CeleryTask implements AirtimeTask {
* @return bool true if there are pending tasks in ThirdPartyTrackReferences
*/
public function shouldBeRun() {
return !CeleryService::isBrokerTaskQueueEmpty();
return !CeleryManager::isBrokerTaskQueueEmpty();
}
/**
* Poll the task queue for any completed Celery tasks
*/
public function run() {
CeleryService::pollBrokerTaskQueue();
CeleryManager::pollBrokerTaskQueue();
}
}