mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 05:25:15 +02:00
Process timeouts are now priority depending
This commit is contained in:
parent
cdc5b609ce
commit
29168de677
2 changed files with 21 additions and 9 deletions
10
boot.php
10
boot.php
|
@ -392,9 +392,11 @@ define ( 'GRAVITY_COMMENT', 6);
|
|||
* Process priority for the worker
|
||||
* @{
|
||||
*/
|
||||
define('PRIORITY_HIGH', 1);
|
||||
define('PRIORITY_MEDIUM', 2);
|
||||
define('PRIORITY_LOW', 3);
|
||||
define('PRIORITY_SYSTEM', -1);
|
||||
define('PRIORITY_UNDEFINED', 0);
|
||||
define('PRIORITY_HIGH', 1);
|
||||
define('PRIORITY_MEDIUM', 2);
|
||||
define('PRIORITY_LOW', 3);
|
||||
/* @}*/
|
||||
|
||||
|
||||
|
@ -1396,7 +1398,7 @@ function check_db() {
|
|||
$build = DB_UPDATE_VERSION;
|
||||
}
|
||||
if($build != DB_UPDATE_VERSION)
|
||||
proc_run(PRIORITY_HIGH, 'include/dbupdate.php');
|
||||
proc_run(PRIORITY_SYSTEM, 'include/dbupdate.php');
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue