]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
List the thread config value in lib/default.php
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 3 Aug 2017 07:53:00 +0000 (09:53 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 3 Aug 2017 07:53:00 +0000 (09:53 +0200)
lib/default.php
scripts/queuedaemon.php

index f465f20bf693f748f71498be4cbc1af1050992b2..6420a05e5f387c6717b89bbbd41c1a4df64d079e 100644 (file)
@@ -98,6 +98,7 @@ $default =
         '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/',
index 8fb0f8e0aeab83aa0c48e9fd6636b4a278e84171..e5dc1af8106a576953772847e5c217c10b948673 100755 (executable)
@@ -176,6 +176,8 @@ if (!$threads) {
     $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');