aboutsummaryrefslogtreecommitdiffstats
path: root/cron.php
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into jtr/fix-cron-memory-usage-levelsJosh2024-06-121-1/+20
|\ | | | | Signed-off-by: Josh <josh.t.richards@gmail.com>
| * fix(cron): Log long running jobsChristoph Wurst2024-06-121-1/+20
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | fix(cron): Log excess memory usage at debug and info levelsJosh2024-06-111-3/+3
|/ | | | Signed-off-by: Josh <josh.t.richards@gmail.com>
* fix(cron): avoid accessing unset argv indexJulien Veyssier2024-06-061-1/+1
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* chore: Add SPDX headerAndy Scherzinger2024-05-261-37/+3
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Revert: "Check datadirectory owner, not config owner."Simon L.2024-05-141-4/+4
| | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* feat(bg-jobs): support multiple arguments in cron.php and ↵Julien Veyssier2024-05-021-12/+6
| | | | | | occ:background-job:worker for the job class list 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-5/+13
| | | | | | cron.php and the job worker occ command Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* chore(bg-jobs): add -h help option to cron.phpJulien Veyssier2024-05-021-0/+16
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* feat(bg-jobs): Allow calling cron.php with a background job classJulius Härtl2024-05-021-1/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fix: Cron misrepresenting itself as consoleHerman van Rink2024-03-131-1/+1
| | | | Signed-off-by: Herman van Rink <rink@initfour.nl>
* fix: Suppress psalm errors about deprecated execute method, we have to use ↵Côme Chilliet2024-03-121-2/+2
| | | | | | 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-2/+4
| | | | | | | Because if an application extends execute it will change behavior without warning otherwise. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat: check `datadirectory` owner instead of `config.php` ownerSam Bull2024-02-281-4/+4
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* Merge pull request #43387 from nextcloud/fix/migrate-away-from-ilogger-in-jobsCôme Chilliet2024-02-081-2/+2
|
* Merge pull request #43454 from nextcloud/fix/cleanup-cron-phpFerdinand Thiessen2024-02-081-24/+48
|\ | | | | Cleanup cron.php method calls
| * fix(cron.php): Avoid pulling configuration twiceCôme Chilliet2024-02-081-4/+4
| | | | | | | | | | | | IConfig is a small wrapper around SystemConfig, no need to pull both of them Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * chore(cron.php): Migrate uses of legacy classes from lib/private/legacyCôme Chilliet2024-02-081-8/+10
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * fix(cron.php): Use new IAppConfig interface in cron.phpCôme Chilliet2024-02-081-3/+5
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * chore(cron.php): Migrate away from ILogger and \OC::$serverCôme Chilliet2024-02-081-15/+35
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Revert "Merge branch 'master' of github.com:nextcloud/server"Louis Chemineau2024-02-081-2/+2
|/ | | | | This reverts commit d9d60238c7aaab9c61bf2d50c15aa59bc88c8975, reversing changes made to ba3fdb0cdcfbb84f0080a2146a4ba2f01569915d.
* chore: Remove last uses of IJob::execute methodCôme Chilliet2024-02-081-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(cron): Fix "Using $this when not in object context"Joas Schilling2024-01-101-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.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>
* feat(cron): Warn on excessive memory consumption in background jobsJoas Schilling2023-12-201-0/+14
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Cleanup tempfiles after each cron job runJulius Härtl2022-05-301-1/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Get not only time-sensitive next job from list but anyKirill Popov2022-04-241-0/+2
| | | | | | | Before the change webcron used to select **only** time-sensitive tasks. Signed-off-by: Kirill Popov <kirill.s.popov@gmail.com>
* Allow sysadmins to define a maintenance window where heavier jobs can runJoas Schilling2022-02-071-1/+23
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Output exception in cronLouis Chemineau2021-08-191-0/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* cron: exit 1 on exceptionsmichel172021-08-081-0/+3
| | | | | | Allows the caller to more easily respond to cron failures. Signed-off-by: Stephen Michel <git@smichel.me>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update license headersChristoph Wurst2020-12-301-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #22916 from J0WI/unifiy-links-to-php.netRoeland Jago Douma2020-12-221-1/+1
|\ | | | | Unify links to php.net
| * Unify links to php.netJ0WI2020-09-171-1/+1
| | | | | | | | | | | | Update all links to https://www.php.net/ Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* | Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-2/+2
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Remove posix_getpwuid and compare only useridhoellen2020-10-061-5/+6
|/ | | | Signed-off-by: hoellen <dev@hoellen.eu>
* Update license headers for 19Christoph Wurst2020-04-291-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-3/+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>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* cron: Adapt to 5 minutes recommendationMichael Kuhn2020-02-171-2/+3
| | | | | | | Update the comment to make clear that we ask for 14 minutes worth of jobs on purpose so at most three parallel cron jobs are running. Signed-off-by: Michael Kuhn <michael@ikkoku.de>
* Update license headersChristoph Wurst2019-12-051-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make the warning about wrong permissions more clear.Daniel Kesselberg2019-08-171-2/+3
| | | | | | It's basically the same as for console.php now. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Make sure maintenance mode is always casted to boolJoas Schilling2019-02-221-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix code styleJoas Schilling2018-05-231-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Less deprecated calls to OCP\Util::writeLogMorris Jobke2018-04-221-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Deprecated OCP interface to fetch background job typeMorris Jobke2018-01-261-6/+6
| | | | | | | * was not used by apps and also is not needed * migrated the documentation to IJobList Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Log full exception in cron instead of only the messageMorris Jobke2018-01-121-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Nextcloud 13 is not compatible with newer than php 7.2Roeland Jago Douma2017-12-121-6/+1
| | | | | | | | | | | Just to avoid users from trying this with a to new (untested) php version * Moved the check logic to 1 place * All directly callable scripts just require this on top * exit hard (-1) so we know scripts won't continue * Return status 500 so no sync clients will try fancy stuff Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-061-0/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>