mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 02:45:16 +02:00
New priority level for stale processes.
This commit is contained in:
parent
1519ac3bf4
commit
108a1c4ac6
2 changed files with 13 additions and 13 deletions
13
boot.php
13
boot.php
|
@ -392,11 +392,12 @@ define ( 'GRAVITY_COMMENT', 6);
|
|||
* Process priority for the worker
|
||||
* @{
|
||||
*/
|
||||
define('PRIORITY_UNDEFINED', 0);
|
||||
define('PRIORITY_SYSTEM', 10);
|
||||
define('PRIORITY_HIGH', 20);
|
||||
define('PRIORITY_MEDIUM', 30);
|
||||
define('PRIORITY_LOW', 40);
|
||||
define('PRIORITY_UNDEFINED', 0);
|
||||
define('PRIORITY_CRITICAL', 10);
|
||||
define('PRIORITY_HIGH', 20);
|
||||
define('PRIORITY_MEDIUM', 30);
|
||||
define('PRIORITY_LOW', 40);
|
||||
define('PRIORITY_NEGLIGIBLE',50);
|
||||
/* @}*/
|
||||
|
||||
|
||||
|
@ -1410,7 +1411,7 @@ function check_db() {
|
|||
$build = DB_UPDATE_VERSION;
|
||||
}
|
||||
if($build != DB_UPDATE_VERSION)
|
||||
proc_run(PRIORITY_SYSTEM, 'include/dbupdate.php');
|
||||
proc_run(PRIORITY_CRITICAL, 'include/dbupdate.php');
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue