public function cleanUp() { // create a separate queue for each priority foreach (PriorityKeys::getAll() as $priorityKey) { $this->workers[$this->uniqueWorkerName($priorityKey)]->stop(); } }