Skip to content

Commit

Permalink
fix(TaskProcessing\Manager): Add missing cache->get()
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Jan 28, 2025
1 parent c79179e commit 4e10081
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/private/TaskProcessing/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,10 @@ public function getPreferredProvider(string $taskTypeId) {
}

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();

Expand Down

0 comments on commit 4e10081

Please sign in to comment.