Carl Schwan
|
0e686fc6a9
|
feat: Port jobs table to snowflakes ids
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
|
2025-12-04 17:16:12 +07:00 |
Ferdinand Thiessen
|
d6d6747a73
|
refactor: apply rector rules for PHPUnit 10
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
|
2025-10-27 21:56:04 +07:00 |
Carl Schwan
|
9b2fff5931
|
refactor(querybuilder): Port away from qb::execute() in tests/
Replace by either executeStatement or executeQuery
Signed-off-by: Carl Schwan <carl.schwan@nextclound.com>
|
2025-09-02 11:55:58 +07:00 |
Daniel Kesselberg
|
af38184b6f
|
fix: Make DummyJobList.getJobsIterator return an interable instance
iterator_to_array on PHP 8.1 does not accept an array and fails hard with a type error
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
|
2025-08-27 12:28:16 +07:00 |
Robin Appelman
|
aa15f9d16d
|
chore: run rector
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2025-07-01 22:45:52 +07:00 |
Ferdinand Thiessen
|
5981b7eb51
|
chore: apply new CSFixer rules
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
# Conflicts:
# apps/settings/lib/SetupChecks/PhpOpcacheSetup.php
|
2025-07-01 16:26:50 +07:00 |
Robin Appelman
|
29e39c0a2e
|
chore: run rector on tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2025-06-12 18:31:58 +07:00 |
Joas Schilling
|
3e7db013c1
|
test: Fix non-static data providers
Signed-off-by: Joas Schilling <coding@schilljs.com>
|
2025-05-15 08:25:01 +07:00 |
Christoph Wurst
|
2395526e6c
|
perf(cron): Delay (re)checking timed jobs
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
2025-03-31 13:21:29 +07:00 |
Christoph Wurst
|
49dd79eabb
|
refactor: Add void return type to PHPUnit test methods
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
2024-09-15 22:32:31 +07:00 |
Robin Appelman
|
85b9552617
|
test: update DummyJobList
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2024-05-30 15:07:39 +07:00 |
Andy Scherzinger
|
1f7e2ba599
|
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
|
2024-05-13 17:41:36 +07:00 |
Julien Veyssier
|
1acc57b5c0
|
feat(bg-jobs): allow setting a job class list instead of a single class in cron.php and the job worker occ command
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
|
2024-05-02 16:43:41 +07:00 |
Julius Härtl
|
52eb6d8726
|
feat(bg-jobs): Allow calling cron.php with a background job class
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
2024-05-02 16:43:40 +07:00 |
Côme Chilliet
|
ec5133b739
|
fix: Apply new coding standard to all files
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
2024-04-02 14:16:21 +07:00 |
Côme Chilliet
|
303e2febc7
|
Merge pull request #43387 from nextcloud/fix/migrate-away-from-ilogger-in-jobs
|
2024-02-08 18:27:44 +07:00 |
Louis Chemineau
|
898df41de9
|
Revert "Merge branch 'master' of github.com:nextcloud/server"
This reverts commit d9d60238c7, reversing
changes made to ba3fdb0cdc.
|
2024-02-08 15:31:19 +07:00 |
Côme Chilliet
|
65981f99bf
|
chore: Migrate away from internal Job classes
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
2024-02-08 10:28:29 +07:00 |
Christoph Wurst
|
04ecc2a6a9
|
feat(backgroundjob): Schedule job after <timestamp>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
2023-09-29 10:29:40 +07:00 |
Marcel Klehr
|
7e790a3297
|
JobTest: Remove outdated tests
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
|
2023-07-28 11:12:32 +07:00 |
Marcel Klehr
|
3d8fd2d99e
|
cs:fix
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
|
2023-07-28 11:12:32 +07:00 |
Marcel Klehr
|
449a731375
|
Add test for ParallelAwareJob
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
|
2023-07-28 11:12:32 +07:00 |
Marcel Klehr
|
20cb9935ca
|
Fix tests
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
|
2023-07-07 13:39:10 +07:00 |
Marcel Klehr
|
06d6cf4ebc
|
JobListTest: Fix JobList constructor call
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
|
2023-04-24 19:07:13 +07:00 |
Marcel Klehr
|
6148c5e0a1
|
Update tests/lib/BackgroundJob/DummyJobList.php
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
|
2023-04-24 12:35:52 +07:00 |
Marcel Klehr
|
a0c722ad69
|
Run cs:Fix
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
|
2023-04-23 12:36:12 +07:00 |
Marcel Klehr
|
5608b50778
|
Fix BackgroundJob tests
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
|
2023-04-23 12:36:12 +07:00 |
Marcel Klehr
|
281c8047b6
|
JobListTest: clearJobsList before testHasReservedJobs
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
|
2023-04-23 12:36:12 +07:00 |
Marcel Klehr
|
56cb5d1d13
|
fix(tests): Remove duplicated method
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
|
2023-04-23 12:36:12 +07:00 |
Marcel Klehr
|
1296f3612e
|
test(BackgroundJobs): Add tests for allowParallelRuns and hasReservedJobs
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
|
2023-04-23 12:36:12 +07:00 |
Côme Chilliet
|
d74044f634
|
Fix API breakage by using a new method instead
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
2023-01-12 17:18:59 +07:00 |
Côme Chilliet
|
75fca38e66
|
Fix BackgroundJob list tests
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
2023-01-12 11:40:18 +07:00 |
Carl Schwan
|
48d9c4d2b0
|
Port existing server code to new interface
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
|
2022-08-08 17:03:19 +07:00 |
Côme Chilliet
|
0386f4270b
|
Fix DummyJobList typing
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
2022-07-12 14:27:02 +07:00 |
Côme Chilliet
|
50a7f612d9
|
Fix DummyJobList class used by tests
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
2022-07-11 09:46:23 +07:00 |
Kirill Popov
|
0b27b9e658
|
Get not only time-sensitive next job from list but any
Before the change webcron used to select
**only** time-sensitive tasks.
Signed-off-by: Kirill Popov <kirill.s.popov@gmail.com>
|
2022-04-24 21:55:53 +07:00 |
Joas Schilling
|
b765f79368
|
Allow apps to specify if their background job can be delayed
Signed-off-by: Joas Schilling <coding@schilljs.com>
|
2022-02-07 13:54:54 +07:00 |
Joas Schilling
|
9cd9f4b4bc
|
Move queries to the joblist
Signed-off-by: Joas Schilling <coding@schilljs.com>
|
2021-10-14 09:57:16 +07:00 |
Morris Jobke
|
16d83ab30a
|
Remove getLastJob from IJobList
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
|
2020-08-13 21:50:06 +07:00 |
Morris Jobke
|
234b510652
|
Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to \PHPUnit\Framework\MockObject\MockObject
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
|
2020-08-12 13:55:19 +07:00 |
Christoph Wurst
|
41b5e5923a
|
Use exactly one empty line after the namespace declaration
For PSR2
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
2020-04-09 11:48:10 +07:00 |
Christoph Wurst
|
b80ebc9674
|
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
2020-03-26 16:34:56 +07:00 |
Christoph Wurst
|
2ee65f177e
|
Use the shorter phpunit syntax for mocked return values
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
2020-03-25 22:21:27 +07:00 |
Daniel Kesselberg
|
018020108b
|
Make sure to catch php errors during job execution
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
|
2020-01-31 16:04:04 +07:00 |
Roeland Jago Douma
|
c007ca624f
|
Make phpunit8 compatible
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
|
2019-11-27 13:34:41 +07:00 |
Roeland Jago Douma
|
8493f49211
|
fixup! fixup! Add backgroundjobs to OCP
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
|
2018-10-09 15:25:56 +07:00 |
Morris Jobke
|
43e498844e
|
Use ::class in test mocks
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
|
2017-10-24 17:45:32 +07:00 |
Noveen Sachdeva
|
1b1f403a5d
|
Add duration of last job execution to the table
|
2017-04-25 17:39:58 +07:00 |
Roeland Jago Douma
|
c4ef825ceb
|
Fix getMock JobListTest
|
2016-09-13 09:09:52 +07:00 |
Joas Schilling
|
d0a2fa0506
|
Lock jobs while executing them, to allow multiple executors to run in parallel
|
2016-05-21 01:59:25 +07:00 |