Côme Chilliet
1ab09ec753
chore: Apply new coding standard to all files
...
The diff can be checked using: git diff --ignore-all-space --ignore-blank-lines
To see only the changes not related to blank lines.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com >
2026-06-01 13:46:39 +02:00
Benjamin Gaussorgues
d67eae3501
feat(jobs): add command to list executed background jobs
...
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com >
2026-05-29 14:09:06 +02:00
Benjamin Gaussorgues
4ee75168d5
feat(jobs): allow to keep track of job executions
...
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com >
2026-05-29 09:14:49 +02:00
Benjamin Gaussorgues
8db8776f2d
feat(jobs): introduce background job classes registry
...
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com >
2026-05-29 09:14:48 +02:00
Joas Schilling
c1ab99e9fc
Merge pull request #59940 from nextcloud/bug/noid/fix-since-checker
...
Fix since checker
2026-05-07 11:25:42 +02:00
Ferdinand Thiessen
81752fc9ed
chore(ocp): add Override attribute to all OCP classes
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de >
2026-04-28 21:29:27 +02:00
Daniel Kesselberg
25ca85e329
docs(ocp): Add since tag
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de >
2026-04-28 11:17:27 +02:00
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 +01:00
Ferdinand Thiessen
89896b1d89
chore: Remove deprecated IJob::execute method
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de >
2025-09-04 17:48:26 +02: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 +02: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 +02:00
provokateurin
b209508d8f
feat(TimedJob): Add debug log about time sensitive jobs with long intervals
...
Signed-off-by: provokateurin <kate@provokateurin.de >
2024-10-08 11:26:53 +02:00
provokateurin
54ec472d9a
fix(BackgroundJobs): Adjust intervals and time sensitivities
...
Signed-off-by: provokateurin <kate@provokateurin.de >
2024-10-08 11:26:53 +02:00
Ferdinand Thiessen
a8f46af20f
chore: Add proper deprecation dates where missing
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de >
2024-09-20 00:46:03 +02:00
Robin Appelman
1a9f7d5348
fix: delete background jobs by id when cleaning up
...
Signed-off-by: Robin Appelman <robin@icewind.nl >
2024-05-30 15:07:26 +02:00
Andy Scherzinger
dae7c159f7
chore: Add SPDX header
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de >
2024-05-24 13:11:22 +02:00
Julien Veyssier
d967151f52
fix(bg-jobs): review adjustments
...
Signed-off-by: Julien Veyssier <julien-nc@posteo.net >
2024-05-02 16:43:42 +02: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 +02:00
Marcel Klehr
352d79deee
fix(bg-jobs): fix psalm issues
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net >
2024-05-02 16:43:41 +02: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 +02:00
Côme Chilliet
303e2febc7
Merge pull request #43387 from nextcloud/fix/migrate-away-from-ilogger-in-jobs
2024-02-08 18:27:44 +01: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 +01: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 +01:00
Côme Chilliet
166773879b
fix!: Migrate jobs away from deprecated interfaces
...
BREAKING CHANGE: Removed ILogFactory::getCustomLogger deprecated method
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com >
2024-02-08 10:28:29 +01:00
Joas Schilling
b8c57efaad
fix(log): Improve logging of background job details for better reproduction/debugging
...
Signed-off-by: Joas Schilling <coding@schilljs.com >
2023-12-20 15:35:40 +01:00
Marcel Klehr
1471849956
fix: Extend docblock of hasReservedJob
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net >
2023-11-08 16:37:51 +01: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 +02:00
Marcel Klehr
2b96760dc6
Remove allowParallelRuns check in OCP\BackgroundJob\Job
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net >
2023-07-28 11:12:32 +02:00
Christoph Wurst
cb78805282
fix(ocp): TimedJob can't have a more specific argument than Job
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at >
2023-06-28 14:59:36 +02:00
Simon L
d55a7c619d
Fix typos in lib/public subdirectory
...
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 >
2023-05-10 11:56:34 +02:00
Marcel Klehr
5608b50778
Fix BackgroundJob tests
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net >
2023-04-23 12:36:12 +02:00
Marcel Klehr
94038e0673
IParallelAwareJob: Add missing boilerplate
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net >
2023-04-23 12:36:12 +02:00
Marcel Klehr
0f3211c4e4
Add IParallelAwareJob interface
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net >
2023-04-23 12:36:12 +02:00
Marcel Klehr
c01c516323
feat(BackgroundJobs): Allow preventing parallel runs for a job class
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net >
2023-04-23 12:36:12 +02:00
Côme Chilliet
f5c361cf44
composer run cs:fix
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com >
2023-01-20 11:45:08 +01: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 +01:00
Côme Chilliet
e74f464662
Remove deprecated method getAll instead of breaking API on deprecated method
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com >
2023-01-12 17:13:08 +01:00
Côme Chilliet
679682c186
Use a Generator for job list to fix background-job:list command
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com >
2023-01-10 18:20:31 +01: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 +02:00
Carl Schwan
19a2d6f6e7
Deprecated ILogger from IJob
...
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 >
2022-08-08 17:03:13 +02:00
Côme Chilliet
2e921f8b3d
Fix typing in IJobList
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com >
2022-07-11 09:46:23 +00:00
Côme Chilliet
868d748dbf
Code cleaning of Background/ListCommand
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com >
2022-07-11 09:46:23 +00:00
Côme Chilliet
3d01179907
Add command to list jobs
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com >
2022-07-11 09:46:23 +00: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 +01:00
Joas Schilling
7239b3d560
Bump since version
...
Signed-off-by: Joas Schilling <coding@schilljs.com >
2021-10-14 09:57:16 +02:00
Joas Schilling
9cd9f4b4bc
Move queries to the joblist
...
Signed-off-by: Joas Schilling <coding@schilljs.com >
2021-10-14 09:57:16 +02:00
John Molakvoæ (skjnldsv)
215aef3cbd
Update php licenses
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com >
2021-06-04 22:02:41 +02:00
Christoph Wurst
389623a910
Document that the TimedJob interval is in seconds
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at >
2021-03-26 09:13:05 +01:00
Roeland Jago Douma
82d3f50b78
Fix the OCP\BackgroundJob\Job to make it compatible with its interface
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl >
2020-11-24 09:33:49 +01:00
Morris Jobke
26a38c4e8a
Job::run() does not return anything
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de >
2020-10-08 16:52:02 +02:00