List the thread config value in lib/default.php
This commit is contained in:
parent
dea9f43d85
commit
6938d26524
@ -98,6 +98,7 @@ $default =
|
|||||||
'queue' =>
|
'queue' =>
|
||||||
array('enabled' => true,
|
array('enabled' => true,
|
||||||
'daemon' => false, # Use queuedaemon. Default to false
|
'daemon' => false, # Use queuedaemon. Default to false
|
||||||
|
'threads' => null, # an empty value here uses processor count to determine
|
||||||
'subsystem' => 'db', # default to database, or 'stomp'
|
'subsystem' => 'db', # default to database, or 'stomp'
|
||||||
'stomp_server' => null,
|
'stomp_server' => null,
|
||||||
'queue_basename' => '/queue/statusnet/',
|
'queue_basename' => '/queue/statusnet/',
|
||||||
|
@ -176,6 +176,8 @@ if (!$threads) {
|
|||||||
$threads = getProcessorCount();
|
$threads = getProcessorCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
common_log(LOG_INFO, sprintf('Launching QueueDaemon background process with %1$d threads.', $threads));
|
||||||
|
|
||||||
$daemonize = !(have_option('f') || have_option('--foreground'));
|
$daemonize = !(have_option('f') || have_option('--foreground'));
|
||||||
$all = have_option('a') || have_option('--all');
|
$all = have_option('a') || have_option('--all');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user