aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/TaskProcessing/Manager.php
Commit message (Collapse)AuthorAgeFilesLines
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-4/+4
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(TaskProcessing): increase error_message column lengthAnupam Kumar2024-09-061-2/+3
| | | | Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
* chore: adjust code to adhere to coding standardAnna Larch2024-09-051-5/+5
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Revert "fix(TaskProcessing): Use OCP\Server::get instead of copying methods"Marcel Klehr2024-08-301-5/+45
| | | | | | This reverts commit d624c8da8f0dc2eaf18d416aa15db0a2035de398. Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* fix(TaskProcessing): Use OCP\Server::get instead of copying methodsMarcel Klehr2024-08-301-45/+5
| | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net> Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* feat(speech-to-text): SpeechToTextManager::transcribeFile calls ↵Julien Veyssier2024-08-301-2/+24
| | | | | | TaskProcessingManager::runTask Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* feat(textprocessing): TextProcessingManager::runTask calls ↵Julien Veyssier2024-08-301-3/+28
| | | | | | TaskProcessingManager::runTask Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* feat(taskprocessing): add IManager::runTask method to run task synchronouslyJulien Veyssier2024-08-271-42/+122
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-3/+3
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(taskprocessing): select preferred provider when running sync task, fix ↵Julien Veyssier2024-08-121-9/+9
| | | | | | task type values according to preferred provider Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* Merge pull request #46912 from ↵Marcel Klehr2024-08-011-0/+4
|\ | | | | | | | | nextcloud/fix/taskprocessing-speech-to-text-legacy More fixes for task processing
| * fix(TaskProcessing): Legacy Speech To Text support needs UserIdMarcel Klehr2024-07-311-0/+4
| | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* | fix(TaskProcessing): Don't break if provider methods throwMarcel Klehr2024-07-301-14/+18
|/ | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(taskprocessing): add missing translate default task typeJulien Veyssier2024-07-251-0/+1
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* fix: Don't validate input again upon running a taskMarcel Klehr2024-07-251-7/+0
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix: Make sure provider provides enum valuesMarcel Klehr2024-07-251-1/+4
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(taskprocessing): Update lib/private/TaskProcessing/Manager.phpMarcel Klehr2024-07-251-2/+2
| | | | | Co-authored-by: Julien Veyssier <julien-nc@posteo.net> Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(taskprocessing): run cs:fixJulien Veyssier2024-07-251-17/+17
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* feat(TaskProcessing): Implement enums and default valuesMarcel Klehr2024-07-251-35/+161
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* feat(taskprocessing): add appId filter to taskprocessing occ commandsJulien Veyssier2024-07-231-2/+3
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* feat(taskprocessing): add occ commands to list tasks and compute statsJulien Veyssier2024-07-231-0/+13
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* feat(taskprocessing): add start, stop and schedule time to tasksJulien Veyssier2024-07-231-0/+19
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* feat(taskprocessing): add support for webhooks (http or AppAPI) in the task ↵Julien Veyssier2024-07-221-1/+78
| | | | | | processing API Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* Merge pull request #46368 from nextcloud/fix/task-processingMarcel Klehr2024-07-191-51/+142
|\ | | | | TaskProcessing follow-up
| * fix(TaskProcessing): Run cs:fixMarcel Klehr2024-07-171-1/+1
| | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * fix(TaskProcessing): Use getScalarType instead of relying on magic integersMarcel Klehr2024-07-171-5/+7
| | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * fix(TaskProcessingA/Manager): Catch new errorMarcel Klehr2024-07-171-1/+7
| | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * fix(TaskProcessingA/Manager): Use time() along with rand int for file namesMarcel Klehr2024-07-171-2/+2
| | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * fix(TaskProcessing\Manager#setTaskResult): Replace files contents with ID ↵Marcel Klehr2024-07-171-0/+9
| | | | | | | | | | | | instead of File object Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * fix: do not overwrite the output if NodeID existsAlexander Piskun2024-07-171-6/+1
| | | | | | | | | | Signed-off-by: Alexander Piskun <bigcat88@icloud.com> Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * fix(TaskProcessing\Manager#setTaskResult): Replace files contents with ID ↵Marcel Klehr2024-07-171-0/+5
| | | | | | | | | | | | instead of File object Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * fix: Validate output properlyMarcel Klehr2024-07-171-4/+33
| | | | | | | | | | | | Differentiate between output with file IDs and output with File data Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * feat(TaskProcessing): Allow setting task results for file slotsMarcel Klehr2024-07-171-42/+87
| | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* | feat(settings/admin/ai): fix provider list not being declaredJulien Veyssier2024-07-171-1/+1
| | | | | | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* | feat(settings/admin/ai): Add Task Processing API settingsMarcel Klehr2024-07-171-4/+18
|/ | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* Merge pull request #46251 from nextcloud/feat/taskprocessing-more-tasktypesJoas Schilling2024-07-041-0/+3
|\ | | | | feat(TaskProcessing): Add more task types
| * feat(TaskProcessing): Add more task typesMarcel Klehr2024-07-041-0/+3
| | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* | fix(TaskProcessing): Set task status to running when processing via ↵Marcel Klehr2024-07-041-0/+11
| | | | | | | | | | | | ISynchronousProvider Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* | feat(TaskProcessingApi): Add endpoint for getting the next taskprovokateurin2024-07-011-18/+22
| | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* | fix(taskprocessing): in removeSuperfluousArrayKeys, don't try to keep ↵Julien Veyssier2024-07-011-0/+1
| | | | | | | | | | | | input/output keys that are not in the task values Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* | fix(taskprocessing): input validation was dropping some optional inputsJulien Veyssier2024-07-011-1/+1
|/ | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* fix(taskprocessing): missing GenerateEmoji default task type in ↵Julien Veyssier2024-06-201-0/+1
| | | | | | manager::_getTaskTypes Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* fix(taskprocessing): missing ContextWrite default task type in ↵Julien Veyssier2024-06-201-0/+1
| | | | | | manager::_getTaskTypes Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* chore: Add SPDX headerAndy Scherzinger2024-05-241-18/+2
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: address review commentsMarcel Klehr2024-05-141-1/+0
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix: Fix pass-through stt providerMarcel Klehr2024-05-141-14/+1
| | | | | | Wasn't able to load File from app data Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(Manager#fillInputs): Try to setup user FS before access file inputsMarcel Klehr2024-05-141-4/+4
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* Update lib/private/TaskProcessing/Manager.phpMarcel Klehr2024-05-141-1/+1
| | | | Co-authored-by: julien-nc <julien-nc@posteo.net> Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(Manager#fillInputData): Load user folder if neededMarcel Klehr2024-05-141-2/+6
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(OCS-API): Add endpoint to list user tasksMarcel Klehr2024-05-141-0/+11
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>