aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/BackgroundJob
Commit message (Collapse)AuthorAgeFilesLines
* test: update DummyJobListRobin Appelman2024-07-101-4/+18
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-043-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-085-99/+28
|
* Revert "Merge branch 'master' of github.com:nextcloud/server"Louis Chemineau2024-02-085-28/+99
| | | | | This reverts commit d9d60238c7aaab9c61bf2d50c15aa59bc88c8975, reversing changes made to ba3fdb0cdcfbb84f0080a2146a4ba2f01569915d.
* chore: Migrate away from internal Job classesCôme Chilliet2024-02-085-99/+28
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(backgroundjob): Schedule job after <timestamp>Christoph Wurst2023-09-291-1/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* JobTest: Remove outdated testsMarcel Klehr2023-07-281-52/+0
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* cs:fixMarcel Klehr2023-07-281-1/+0
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* Add test for ParallelAwareJobMarcel Klehr2023-07-282-5/+89
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* Fix testsMarcel Klehr2023-07-071-1/+1
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* JobListTest: Fix JobList constructor callMarcel Klehr2023-04-241-1/+3
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* Update tests/lib/BackgroundJob/DummyJobList.phpMarcel Klehr2023-04-241-2/+2
| | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* Run cs:FixMarcel Klehr2023-04-231-4/+4
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* Fix BackgroundJob testsMarcel Klehr2023-04-232-11/+20
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* JobListTest: clearJobsList before testHasReservedJobsMarcel Klehr2023-04-231-0/+1
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(tests): Remove duplicated methodMarcel Klehr2023-04-231-21/+0
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* test(BackgroundJobs): Add tests for allowParallelRuns and hasReservedJobsMarcel Klehr2023-04-234-4/+105
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* Fix API breakage by using a new method insteadCôme Chilliet2023-01-122-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix BackgroundJob list testsCôme Chilliet2023-01-121-1/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Port existing server code to new interfaceCarl Schwan2022-08-081-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix DummyJobList typingCôme Chilliet2022-07-121-8/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix DummyJobList class used by testsCôme Chilliet2022-07-111-17/+27
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Get not only time-sensitive next job from list but anyKirill Popov2022-04-241-1/+1
| | | | | | | Before the change webcron used to select **only** time-sensitive tasks. Signed-off-by: Kirill Popov <kirill.s.popov@gmail.com>
* Allow apps to specify if their background job can be delayedJoas Schilling2022-02-071-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move queries to the joblistJoas Schilling2021-10-141-0/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove getLastJob from IJobListMorris Jobke2020-08-132-18/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-121-2/+2
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-092-1/+1
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-262-9/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-251-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make sure to catch php errors during job executionDaniel Kesselberg2020-01-311-0/+21
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-274-4/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* fixup! fixup! Add backgroundjobs to OCPRoeland Jago Douma2018-10-092-57/+108
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use ::class in test mocksMorris Jobke2017-10-241-1/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add duration of last job execution to the tableNoveen Sachdeva2017-04-251-9/+13
|
* Fix getMock JobListTestRoeland Jago Douma2016-09-131-2/+4
|
* Lock jobs while executing them, to allow multiple executors to run in parallelJoas Schilling2016-05-211-66/+60
|
* Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-206-0/+595
* Move a-b to PSR-4 * Move c-d to PSR-4 * Move e+g to PSR-4 * Move h-l to PSR-4 * Move m-r to PSR-4 * Move s-u to PSR-4 * Move files/ to PSR-4 * Move remaining tests to PSR-4 * Remove Test\ from old autoloader