Skip to content

Commit d43d071

Browse files
committed
feat(taskprocessing): pass addWatermarking to ISynchronousProvider::process()
Signed-off-by: Julien Veyssier <[email protected]>
1 parent 6aaaf4d commit d43d071

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/TaskProcessing/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ public function processTask(Task $task, ISynchronousProvider $provider): bool {
10391039
}
10401040
try {
10411041
$this->setTaskStatus($task, Task::STATUS_RUNNING);
1042-
$output = $provider->process($task->getUserId(), $input, fn (float $progress) => $this->setTaskProgress($task->getId(), $progress));
1042+
$output = $provider->process($task->getUserId(), $input, fn (float $progress) => $this->setTaskProgress($task->getId(), $progress), $task->getAddWatermarking());
10431043
} catch (ProcessingException $e) {
10441044
$this->logger->warning('Failed to process a TaskProcessing task with synchronous provider ' . $provider->getId(), ['exception' => $e]);
10451045
$userFacingErrorMessage = $e instanceof UserFacingProcessingException ? $e->getUserFacingMessage() : null;

0 commit comments

Comments
 (0)