aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/TaskProcessing/Manager.php32
1 files changed, 18 insertions, 14 deletions
diff --git a/lib/private/TaskProcessing/Manager.php b/lib/private/TaskProcessing/Manager.php
index f2c8e41946a..a804115a631 100644
--- a/lib/private/TaskProcessing/Manager.php
+++ b/lib/private/TaskProcessing/Manager.php
@@ -682,20 +682,24 @@ class Manager implements IManager {
continue;
}
$taskType = $taskTypes[$provider->getTaskTypeId()];
- $availableTaskTypes[$provider->getTaskTypeId()] = [
- 'name' => $taskType->getName(),
- 'description' => $taskType->getDescription(),
- 'optionalInputShape' => $provider->getOptionalInputShape(),
- 'inputShapeEnumValues' => $provider->getInputShapeEnumValues(),
- 'inputShapeDefaults' => $provider->getInputShapeDefaults(),
- 'inputShape' => $taskType->getInputShape(),
- 'optionalInputShapeEnumValues' => $provider->getOptionalInputShapeEnumValues(),
- 'optionalInputShapeDefaults' => $provider->getOptionalInputShapeDefaults(),
- 'outputShape' => $taskType->getOutputShape(),
- 'outputShapeEnumValues' => $provider->getOutputShapeEnumValues(),
- 'optionalOutputShape' => $provider->getOptionalOutputShape(),
- 'optionalOutputShapeEnumValues' => $provider->getOptionalOutputShapeEnumValues(),
- ];
+ try {
+ $availableTaskTypes[$provider->getTaskTypeId()] = [
+ 'name' => $taskType->getName(),
+ 'description' => $taskType->getDescription(),
+ 'optionalInputShape' => $provider->getOptionalInputShape(),
+ 'inputShapeEnumValues' => $provider->getInputShapeEnumValues(),
+ 'inputShapeDefaults' => $provider->getInputShapeDefaults(),
+ 'inputShape' => $taskType->getInputShape(),
+ 'optionalInputShapeEnumValues' => $provider->getOptionalInputShapeEnumValues(),
+ 'optionalInputShapeDefaults' => $provider->getOptionalInputShapeDefaults(),
+ 'outputShape' => $taskType->getOutputShape(),
+ 'outputShapeEnumValues' => $provider->getOutputShapeEnumValues(),
+ 'optionalOutputShape' => $provider->getOptionalOutputShape(),
+ 'optionalOutputShapeEnumValues' => $provider->getOptionalOutputShapeEnumValues(),
+ ];
+ } catch (\Throwable $e) {
+ $this->logger->error('Failed to set up TaskProcessing provider ' . $provider::class, ['exception' => $e]);
+ }
}
$this->availableTaskTypes = $availableTaskTypes;