aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/TaskProcessing
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/TaskProcessing')
-rw-r--r--lib/private/TaskProcessing/Db/Task.php8
-rw-r--r--lib/private/TaskProcessing/Manager.php6
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/private/TaskProcessing/Db/Task.php b/lib/private/TaskProcessing/Db/Task.php
index 11892a14960..9293f4dc236 100644
--- a/lib/private/TaskProcessing/Db/Task.php
+++ b/lib/private/TaskProcessing/Db/Task.php
@@ -43,8 +43,8 @@ use OCP\TaskProcessing\Task as OCPTask;
* @method string|null getUserId()
* @method setAppId(string $type)
* @method string getAppId()
- * @method setIdentifier(string $customId)
- * @method string getIdentifier()
+ * @method setCustomId(string $customId)
+ * @method string getCustomId()
* @method setCompletionExpectedAt(null|\DateTime $completionExpectedAt)
* @method null|\DateTime getCompletionExpectedAt()
* @method setErrorMessage(null|string $error)
@@ -110,7 +110,7 @@ class Task extends Entity {
'errorMessage' => $task->getErrorMessage(),
'userId' => $task->getUserId(),
'appId' => $task->getAppId(),
- 'customId' => $task->getIdentifier(),
+ 'customId' => $task->getCustomId(),
'completionExpectedAt' => $task->getCompletionExpectedAt(),
'progress' => $task->getProgress(),
]);
@@ -122,7 +122,7 @@ class Task extends Entity {
* @throws \JsonException
*/
public function toPublicTask(): OCPTask {
- $task = new OCPTask($this->getType(), json_decode($this->getInput(), true, 512, JSON_THROW_ON_ERROR), $this->getAppId(), $this->getuserId(), $this->getIdentifier());
+ $task = new OCPTask($this->getType(), json_decode($this->getInput(), true, 512, JSON_THROW_ON_ERROR), $this->getAppId(), $this->getuserId(), $this->getCustomId());
$task->setId($this->getId());
$task->setStatus($this->getStatus());
$task->setOutput(json_decode($this->getOutput(), true, 512, JSON_THROW_ON_ERROR));
diff --git a/lib/private/TaskProcessing/Manager.php b/lib/private/TaskProcessing/Manager.php
index 86587a94c23..45d426c9b54 100644
--- a/lib/private/TaskProcessing/Manager.php
+++ b/lib/private/TaskProcessing/Manager.php
@@ -148,7 +148,7 @@ class Manager implements IManager {
return [];
}
- public function process(?string $userId, array $input): array {
+ public function process(?string $userId, array $input, callable $reportProgress): array {
if ($this->provider instanceof \OCP\TextProcessing\IProviderWithUserId) {
$this->provider->setUserId($userId);
}
@@ -258,7 +258,7 @@ class Manager implements IManager {
return [];
}
- public function process(?string $userId, array $input): array {
+ public function process(?string $userId, array $input, callable $reportProgress): array {
try {
$folder = $this->appData->getFolder('text2image');
} catch(\OCP\Files\NotFoundException) {
@@ -340,7 +340,7 @@ class Manager implements IManager {
return [];
}
- public function process(?string $userId, array $input): array {
+ public function process(?string $userId, array $input, callable $reportProgress): array {
try {
$folder = $this->appData->getFolder('audio2text');
} catch(\OCP\Files\NotFoundException) {