Joas Schilling
d0a2fa0506
Lock jobs while executing them, to allow multiple executors to run in parallel
10 years ago
Roeland Jago Douma
6b5db081a5
Move \OC\BackgroundJob to PSR-4
10 years ago
Joas Schilling
04cee6a7db
Change the sort order of background jobs to be DESC instead of ASC
In theory, if your instance ever creates more jobs then your system cron can
handle, the default background jobs get never executed anymore. Because
everytime when the joblist returns the next job it looks for the next ID,
however there is always a new next ID, so it will never wrap back to execute
the low IDs. But when we change the sort order to be DESC, we make sure that
these low IDs are always executed, before the system jumps back up to
execute the new IDs.
10 years ago
Joas Schilling
2a0cda74d4
Use IQueryBuilder::PARAM_* instead of \PDO::PARAM_*
10 years ago
Joas Schilling
ef73aedd7e
Deprecate the method and warn against using it
10 years ago
Thomas Müller
682821c71e
Happy new year!
10 years ago
Joas Schilling
a9935bd490
Add methods to interface which have always been required
10 years ago
Joas Schilling
0daed65e14
Allow dependency injection for background jobs
10 years ago
Joas Schilling
0f836cfe9e
Make sure the interface and the implementation match
10 years ago
Joas Schilling
345e68cafa
Use the query builder for the joblist queries
10 years ago
Morris Jobke
8366ce2767
deduplicate @xenopathic
10 years ago
Morris Jobke
b945d71384
update licence headers via script
10 years ago
Robin McCorkell
0fac2e3f3a
Unique exception for invalid autoload paths, better handling
Background jobs are tolerant of stale entries left by disabled apps,
which will cause an autoload exception.
10 years ago
Robin Appelman
beaef820cf
handle non existing job classes in $jobList->getNext
10 years ago
Arthur Schiwon
e016ed55ff
also free joblist and base from file cache code
11 years ago
Jenkins for ownCloud
b585d87d9d
Update license headers
11 years ago
Morris Jobke
27fde80ee6
fix exception message
11 years ago
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
This reverts commit 6a1a4880f0 .
11 years ago
Robin Appelman
3cf237df67
set max argument length to 4000
11 years ago
Robin Appelman
c2a7fff4f6
throw an exception when trying to push a background job that wont fit in the table
otherwise it will lead to failures in json decode and unexpected and hard to debug issues when running the job
11 years ago
Jenkins for ownCloud
6a1a4880f0
Updating license headers
11 years ago
Robin Appelman
43978befda
Dont try to execute jobs that no longer exist
11 years ago
Robin Appelman
f93457c41d
Fix check if class exists
12 years ago
Robin Appelman
437094bbfc
Check if classes/method exists before trying to call them in background jobs
12 years ago
Robin Appelman
ec9bf8a2d6
Support having legacy `OC_Cache_FileGlobalGC` background jobs
12 years ago
Robin McCorkell
87b548ed91
Fix all PHPDoc types and variable names, in /lib
12 years ago
Scrutinizer Auto-Fixer
adaee6a5a1
Scrutinizer Auto-Fixes
This patch was automatically generated as part of the following inspection:
https://scrutinizer-ci.com/g/owncloud/core/inspections/cdfecc4e-a37e-4233-8025-f0d7252a8720
Enabled analysis tools:
- PHP Analyzer
- JSHint
- PHP Copy/Paste Detector
- PHP PDepend
12 years ago
Robin Appelman
d6576c640c
Add unit tests for JobList
12 years ago
Robin Appelman
62288971ca
Additional phpdoc
12 years ago
Robin Appelman
a6399f9cef
Add the background job list to the public server container
12 years ago
Jörn Friedrich Dreyer
2a6a9a8cef
polish documentation based on scrutinizer patches
12 years ago
Thomas Müller
08c8bf5a7b
decode arguments as array
12 years ago
Thomas Müller
9c9dc276b7
move the private namespace OC into lib/private - OCP will stay in lib/public
Conflicts:
lib/private/vcategories.php
12 years ago
Robin Appelman
b31dc10c3c
Add support for the old public backgroundjob api
13 years ago
Robin Appelman
7948341a86
Rework background job system
13 years ago