aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command/Background
Commit message (Collapse)AuthorAgeFilesLines
* chore: Add SPDX headerAndy Scherzinger2024-05-104-88/+8
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat(bg-jobs): support multiple arguments in cron.php and ↵Julien Veyssier2024-05-021-21/+7
| | | | | | occ:background-job:worker for the job class list Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* fix(bg-jobs): review adjustmentsJulien Veyssier2024-05-022-10/+23
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* feat(bg-jobs): allow setting a job class list instead of a single class in ↵Julien Veyssier2024-05-022-10/+32
| | | | | | cron.php and the job worker occ command Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* chore(bg-jobs): more output in verbose mode in the bg job workerJulien Veyssier2024-05-021-3/+7
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* fix(bg-jobs): cs:fixMarcel Klehr2024-05-021-4/+0
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(bg-jobs): fix psalm issuesMarcel Klehr2024-05-022-5/+10
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(bg-jobs): Remove interval bookkeepingMarcel Klehr2024-05-021-36/+1
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(bg-jobs): fix minor issuesMarcel Klehr2024-05-021-7/+2
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(bg-jobs): Fix running once when no job was scheduledJulius Härtl2024-05-023-206/+266
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* feat(bg-jobs): Add background worker occ commandJulius Härtl2024-05-021-0/+206
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fix: Suppress psalm errors about deprecated execute method, we have to use ↵Côme Chilliet2024-03-121-1/+1
| | | | | | it for now Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Call execute until it is removed for Job classCôme Chilliet2024-03-121-1/+2
| | | | | | | Because if an application extends execute it will change behavior without warning otherwise. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Make adjustments based on the reviewHamid Dehnavi2024-02-231-3/+0
| | | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com> Co-authored-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make adjustments based on the reviewHamid Dehnavi2024-02-231-3/+0
| | | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com> Co-authored-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Refactor core/Command/BackgroundHamid Dehnavi2024-02-235-5/+12
| | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* Merge pull request #43387 from nextcloud/fix/migrate-away-from-ilogger-in-jobsCôme Chilliet2024-02-081-6/+4
|
* Revert "Merge branch 'master' of github.com:nextcloud/server"Louis Chemineau2024-02-081-4/+6
| | | | | This reverts commit d9d60238c7aaab9c61bf2d50c15aa59bc88c8975, reversing changes made to ba3fdb0cdcfbb84f0080a2146a4ba2f01569915d.
* chore: Delete deprecated internal Job classesCôme Chilliet2024-02-081-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix!: Migrate jobs away from deprecated interfacesCôme Chilliet2024-02-081-3/+1
| | | | | | BREAKING CHANGE: Removed ILogFactory::getCustomLogger deprecated method Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* occ background-job:deleteMaxence Lange2024-01-111-0/+80
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Update core/Command/Background/ListCommand.phpJonas2023-11-141-1/+1
| | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Jonas <jonas@freesources.org>
* fix(Background): Bump default limit for listing background jobs to 500Jonas2023-11-141-1/+1
| | | | Signed-off-by: Jonas <jonas@freesources.org>
* fix(Background): Show comment about limit at end and conditionallyJonas2023-11-141-4/+5
| | | | | | | | * Only print the comment when job list is truncated * Show the comment at the end so users actually see it * Format the comment as comment Signed-off-by: Jonas <jonas@freesources.org>
* Update core/Command/Background/ListCommand.phpJonas2023-11-141-1/+3
| | | | Co-authored-by: Daniel <mail@danielkesselberg.de> Signed-off-by: Jonas <jonas@freesources.org>
* (enh) Change occ background-job:list limit default 10->100Josh Richards2023-11-141-1/+2
| | | | | | The default limit of 10 seems too conservative. Nearly all environments >100 and most <10. At the same time, this higher default limit still remains reasonable to avoid problems in really big environments. Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
* Moves single constructor parameters to new lines.Faraz Samapoor2023-06-192-2/+6
| | | | | | | Based on: https://github.com/nextcloud/server/pull/38764#discussion_r1227630895 Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* Uses PHP8's constructor property promotion.Faraz Samapoor2023-06-193-14/+6
| | | | | | in core/Command/App, /Background, and /Broadcast classes. Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* Fix API breakage by using a new method insteadCôme Chilliet2023-01-121-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use a Generator for job list to fix background-job:list commandCôme Chilliet2023-01-101-6/+7
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix background-job:execute command for QueuedJob instancesCôme Chilliet2022-07-111-1/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Format the datetime for last run in ATOM formatCôme Chilliet2022-07-111-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use symfony console table to render the job list properlyCôme Chilliet2022-07-111-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Code cleaning of Background/ListCommandCôme Chilliet2022-07-111-14/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add command to list jobsCôme Chilliet2022-07-111-0/+95
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update core to PHP 7.4 standardCarl Schwan2022-05-202-12/+3
| | | | | | | - Typed properties - Port to LoggerInterface Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Adjust namespace and print a message when the job was skippedJoas Schilling2021-10-141-5/+14
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move queries to the joblistJoas Schilling2021-10-141-23/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a command to show info about a background job and force-execute itJoas Schilling2021-10-141-0/+168
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add return value to all commandsJoas Schilling2020-06-261-2/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-104-5/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove trailing and in between spacesChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix multiline commentsChristoph Wurst2020-04-084-103/+103
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+1
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Rename files to be PSR-4 compliantLukas Reschke2016-04-064-0/+176