aboutsummaryrefslogtreecommitdiffstats
path: root/cron.php
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Always log cron executionMorris Jobke2017-08-171-3/+1
| | | | | | | | | | | There was a setting to disable the last execution of cron. There is no known problem with this write access and it was also questioned when this feature was build in https://github.com/owncloud/core/pull/7689#issuecomment-38264707 Recently there was also a bug report about a non-visible last cron execution (#6088) - let's better remove this. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add duration of last job execution to the tableNoveen Sachdeva2017-04-251-2/+0
|
* Check that set_time_limit is not disabled before calling itKo-2017-03-111-1/+3
| | | | Signed-off-by: Ko- <k.stoffelen@cs.ru.nl>
* Exit with error code if posix ext missing or wrong userArtem Sidorenko2017-03-081-2/+2
| | | | similar to the console.php
* Clean up single user modeMorris Jobke2017-02-221-5/+0
| | | | | | | | | | | | | | Single user mode basically disables WebDAV, OCS and cron execution. Since we heavily rely on WebDAV and OCS also in the web UI it's basically useless. An admin only sees a broken interface and can't even change any settings nor sees any files. Also sharing is not possible. As this is at least the case since Nextcloud 9 and we haven't received any reports for this it seems that this feature is not used at all so I removed it. The encryption commands now rely on the well tested maintenance mode. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Also check in cron for old php versionRoeland Jago Douma2016-12-191-0/+7
| | | | | | Fixes #2756 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* [master] Tear down FS between cron jobs (#26223)Vincent Petry2016-10-121-0/+2
| | | | | | | | | | | Because some cron jobs do not always properly clean up their FS usage and others might not clean up before setting up the FS, this could cause potential side effects. To make sure we exclude side effects, we tear down the FS between cron jobs. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow to call the files even when you are in another instance atmJoas Schilling2016-10-061-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* log class name, ID only is hard to debugJörn Friedrich Dreyer2016-08-091-2/+2
|
* introduce NEXTCLOUD_CONFIG_DIR env variable (see #300)Damjan Georgievski2016-07-291-1/+1
| | | | | | | | | | | | | | | nextcloud by default uses the `/config/` directory in the source/application tree for its config file(s). with this commit that directory can be overridden by the `NEXTCLOUD_CONFIG_DIR` environment variable. in uwsgi, you would use the option `--env "NEXTCLOUD_CONFIG_DIR=/tmp/nx-config/"` in apache `SetENV …` and the cli command can be run with: `NEXTCLOUD_CONFIG_DIR=/tmp/nx-config ./occ` (or just use `export` once in the shell). NEXTCLOUD_CONFIG_DIR can be supplied with or without the trailing slash (`/`), but in all cases `$configDir` will have it automatically added if needed. The other changes are several occurrences of `OC::$SERVERROOT . '/config'` to `OC::$configDir`.
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-2/+3
|
* Remove unneeded checks if it runs on a Windows machineMorris Jobke2016-07-081-13/+11
| | | | * the setup check is still there
* Update license headersLukas Reschke2016-05-261-1/+0
|
* Do not lock the cron anymore so we can have multiple workersJoas Schilling2016-05-211-27/+0
|
* Lock jobs while executing them, to allow multiple executors to run in parallelJoas Schilling2016-05-211-0/+1
|
* Make sure that CLI cron doesn't run for ever, but makes use of the next spawnJoas Schilling2016-04-211-0/+8
|
* Catch class Error on all root entrypointsThomas Müller2016-04-201-0/+2
|
* Do not create a loop that generates thousands of jobsJoas Schilling2016-01-281-2/+11
|
* Happy new year!Thomas Müller2016-01-121-1/+1
|
* Add debug log statement for IJobList steps in cron.phpMorris Jobke2015-11-061-0/+2
| | | | * makes debugging easier
* Replace some OC_Config calls with ILogger methodsMorris Jobke2015-10-301-2/+2
|
* update licence headers via scriptMorris Jobke2015-10-051-0/+2
|
* Minor text typosPhil Davis2015-09-211-1/+1
| | | | that I noticed while looking at some code.
* Add a session wrapper to encrypt the data before storing it on diskJoas Schilling2015-08-211-1/+4
|