Rename CeleryService to avoid confusion; fix wording and reduce redundancy in task functions
This commit is contained in:
parent
a444751397
commit
7b76c8d6d3
4 changed files with 37 additions and 31 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue