fix(TaskProcessing\Manager): Add missing cache->get()

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
pull/50418/head
Marcel Klehr 2025-01-28 10:10:18 +07:00
parent c79179e22f
commit 4e10081e2a
1 changed files with 4 additions and 0 deletions

@ -740,6 +740,10 @@ class Manager implements IManager {
}
public function getAvailableTaskTypes(): array {
if ($this->availableTaskTypes === null) {
// We use local cache only because distributed cache uses JSOn stringify which would botch our ShapeDescriptor objects
$this->availableTaskTypes = $this->cache->get('available_task_types');
}
if ($this->availableTaskTypes === null) {
$taskTypes = $this->_getTaskTypes();