add TODO
authorKali Kaneko (leap communications) <kali@leap.se>
Fri, 1 Apr 2016 02:32:47 +0000 (22:32 -0400)
committerKali Kaneko (leap communications) <kali@leap.se>
Fri, 1 Apr 2016 02:32:47 +0000 (22:32 -0400)
server3.py

index f0a44cd..d737d4b 100644 (file)
@@ -32,7 +32,8 @@ pp = None
 @defer.inlineCallbacks
 def start_pool():
     global pp
-    pp = pool.ProcessPool(tasks.FibCalculator, min=1, max=2)
+    # TODO get max number of processors
+    pp = pool.ProcessPool(tasks.FibCalculator, min=1, max=4)
     print 'starting pool'
     yield pp.start()