aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/BackgroundJob
Commit message (Collapse)AuthorAgeFilesLines
* Remove @suppress SqlInjectionCheckerMorris Jobke2020-09-161-2/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-242-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove getLastJob from IJobListMorris Jobke2020-08-131-12/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use formal type hints instead of informal PHPDocMorris Jobke2020-07-061-16/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix wrong phpdoc for execute methodDaniel Kesselberg2020-07-032-2/+4
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Update license headers for 19Christoph Wurst2020-04-292-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-092-0/+2
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-313-0/+3
| | | | 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>
* Make sure to catch php errors during job executionDaniel Kesselberg2020-01-311-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* JobList: Typecast last_run to integerGeorg Ehrke2020-01-301-1/+1
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Update license headersChristoph Wurst2019-12-056-6/+8
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+1
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix integer background job id type errorChristoph Wurst2019-01-151-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Revert "Wait for cron to finish before running upgrade command"Morris Jobke2018-11-011-39/+1
| | | | | | This reverts commit 18e9631810ad1d3d72c2b4bbee330169808108ad. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Suppress potential SQL injection warning as they are false positivesMorris Jobke2018-07-091-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Unlock failed cron jobs and set a high "last_checked" value to avoid ↵Morris Jobke2018-07-091-0/+9
| | | | | | | | | continous re-check * fixes issue where cronjobs of a not-loaded app are marked as "still running" because there is a "reserved_at" value stored * fixed #9992 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Wait for cron to finish before running upgrade commandMorris Jobke2018-06-191-1/+39
| | | | | | * fixes #9562 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-064-0/+7
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add |null to PHPDocLukas Reschke2017-08-013-3/+3
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add Phan plugin to check for SQL injectionsLukas Reschke2017-07-201-0/+1
| | | | | | | | | | This adds a phan plugin which checks for SQL injections on code using our QueryBuilder, while it isn't perfect it should already catch most potential issues. As always, static analysis will sometimes have false positives and this is also here the case. So in some cases the analyzer just doesn't know if something is potential user input or not, thus I had to add some `@suppress SqlInjectionChecker` in front of those potential injections. The Phan plugin hasn't the most awesome code but it works and I also added a file with test cases. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add duration of last job execution to the tableNoveen Sachdeva2017-04-252-3/+25
|
* make JobList::next() lock freeJörn Friedrich Dreyer2017-04-071-5/+10
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update with robinJoas Schilling2016-07-216-6/+6
|
* Fix othersJoas Schilling2016-07-216-7/+13
|
* Lock jobs while executing them, to allow multiple executors to run in parallelJoas Schilling2016-05-211-33/+53
|
* Move \OC\BackgroundJob to PSR-4Roeland Jago Douma2016-04-266-0/+554