aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/BackgroundJob
Commit message (Collapse)AuthorAgeFilesLines
* chore: Add proper deprecation dates where missingFerdinand Thiessen2024-09-204-5/+5
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: delete background jobs by id when cleaning upRobin Appelman2024-05-302-1/+13
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: Add SPDX headerAndy Scherzinger2024-05-246-129/+16
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(bg-jobs): review adjustmentsJulien Veyssier2024-05-021-4/+4
| | | | 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-021-2/+5
| | | | | | cron.php and the job worker occ command Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* fix(bg-jobs): fix psalm issuesMarcel Klehr2024-05-021-2/+10
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-023-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #43387 from nextcloud/fix/migrate-away-from-ilogger-in-jobsCôme Chilliet2024-02-082-9/+8
|
* Revert "Merge branch 'master' of github.com:nextcloud/server"Louis Chemineau2024-02-082-8/+9
| | | | | This reverts commit d9d60238c7aaab9c61bf2d50c15aa59bc88c8975, reversing changes made to ba3fdb0cdcfbb84f0080a2146a4ba2f01569915d.
* chore: Migrate away from internal Job classesCôme Chilliet2024-02-081-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix!: Migrate jobs away from deprecated interfacesCôme Chilliet2024-02-081-7/+6
| | | | | | BREAKING CHANGE: Removed ILogFactory::getCustomLogger deprecated method Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(log): Improve logging of background job details for better ↵Joas Schilling2023-12-201-3/+4
| | | | | | reproduction/debugging Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: Extend docblock of hasReservedJobMarcel Klehr2023-11-081-1/+2
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* feat(backgroundjob): Schedule job after <timestamp>Christoph Wurst2023-09-291-0/+13
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove allowParallelRuns check in OCP\BackgroundJob\JobMarcel Klehr2023-07-281-5/+0
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(ocp): TimedJob can't have a more specific argument than JobChristoph Wurst2023-06-281-5/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix typos in lib/public subdirectorySimon L2023-05-101-1/+1
| | | | | | | | | | | | | Found via `codespell -q 3 -S l10n -L jus ./lib/public` Signed-off-by: luz paz <luzpaz@github.com> Update lib/public/Accounts/IAccount.php Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: Simon L <szaimen@e.mail.de> Co-Authored-By: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
* Fix BackgroundJob testsMarcel Klehr2023-04-231-2/+4
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* IParallelAwareJob: Add missing boilerplateMarcel Klehr2023-04-231-0/+27
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* Add IParallelAwareJob interfaceMarcel Klehr2023-04-232-2/+22
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* feat(BackgroundJobs): Allow preventing parallel runs for a job classMarcel Klehr2023-04-232-0/+34
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* composer run cs:fixCôme Chilliet2023-01-201-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix API breakage by using a new method insteadCôme Chilliet2023-01-121-2/+12
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove deprecated method getAll instead of breaking API on deprecated methodCôme Chilliet2023-01-121-10/+0
| | | | 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-4/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Port existing server code to new interfaceCarl Schwan2022-08-082-1/+2
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Deprecated ILogger from IJobCarl Schwan2022-08-084-25/+61
| | | | | | | Since the ILogger will be soon removed we need to ensure that nothing in the public api use it. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix typing in IJobListCôme Chilliet2022-07-111-18/+16
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Code cleaning of Background/ListCommandCôme Chilliet2022-07-111-9/+9
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add command to list jobsCôme Chilliet2022-07-111-8/+10
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Allow apps to specify if their background job can be delayedJoas Schilling2022-02-073-2/+44
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Bump since versionJoas Schilling2021-10-141-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move queries to the joblistJoas Schilling2021-10-141-0/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-045-8/+4
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Document that the TimedJob interval is in secondsChristoph Wurst2021-03-261-2/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix the OCP\BackgroundJob\Job to make it compatible with its interfaceRoeland Jago Douma2020-11-241-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Job::run() does not return anythingMorris Jobke2020-10-081-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #22432 from nextcloud/enh/phpdocRoeland Jago Douma2020-08-262-2/+0
|\ | | | | Add php docs build script
| * Remove @package annotations from public namespaceJulius Härtl2020-08-262-2/+0
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove getLastJob from IJobListMorris Jobke2020-08-131-11/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use formal type hints instead of informal PHPDocMorris Jobke2020-07-061-5/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix wrong phpdoc for execute methodDaniel Kesselberg2020-07-031-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Update license headers for 19Christoph Wurst2020-04-292-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-0/+1
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix multiline commentsChristoph Wurst2020-04-081-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-055-5/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fixup! Add backgroundjobs to OCPRoeland Jago Douma2018-10-091-0/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add backgroundjobs to OCPRoeland Jago Douma2018-10-093-0/+251
| | | | | | | | | | | | | | | This adds abstract classes to base background jobs on. Right now almost all uses of this use the private namespace. For most usages it will be enough to just extend the the abstract classes QueuedJob or TimedJob. It should be a straight forward drop in replacement. The private jobs can then be killed off after a few releases. So we have a nice public API. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Deprecated OCP interface to fetch background job typeMorris Jobke2018-01-261-0/+13
| | | | | | | * was not used by apps and also is not needed * migrated the documentation to IJobList Signed-off-by: Morris Jobke <hey@morrisjobke.de>