'queue' =>
array('enabled' => true,
'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'
'stomp_server' => null,
'queue_basename' => '/queue/statusnet/',
$threads = getProcessorCount();
}
+common_log(LOG_INFO, sprintf('Launching QueueDaemon background process with %1$d threads.', $threads));
+
$daemonize = !(have_option('f') || have_option('--foreground'));
$all = have_option('a') || have_option('--all');