forked from GNUsocial/gnu-social
Merge branch 'nightly' into 'nightly'
Enable configuration option for number of threads used by queuedaemons.php Could we change the script for queuedaemon.php to using a configuration setting if not arguments such as -t or --threads is set? Example in configuration file: ``` $config['queue']['threads'] = 15; //Spawning 15 threads for handling the queue ``` See merge request !105
This commit is contained in:
commit
23651c6142
@ -169,6 +169,9 @@ if (have_option('t')) {
|
||||
$threads = intval(get_option_value('--threads'));
|
||||
} else {
|
||||
$threads = 0;
|
||||
//If there is no argument for number of threads
|
||||
//Try reading a config option for the number
|
||||
$threads = common_config('queue','threads');
|
||||
}
|
||||
if (!$threads) {
|
||||
$threads = getProcessorCount();
|
||||
|
Loading…
Reference in New Issue
Block a user