diff piecrust/workerpool.py @ 1014:071f30aa04bb

bake: Do template caching in a background job if possible.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 28 Nov 2017 21:28:15 -0800
parents c4cf3cfe2726
children bd544b65cfad
line wrap: on
line diff
--- a/piecrust/workerpool.py	Tue Nov 28 21:27:57 2017 -0800
+++ b/piecrust/workerpool.py	Tue Nov 28 21:28:15 2017 -0800
@@ -310,6 +310,10 @@
 
         stats.stepTimerSince('MasterInit', init_start_time)
 
+    @property
+    def pool_size(self):
+        return len(self._pool)
+
     def queueJobs(self, jobs):
         if self._closed:
             if self._error_on_join: