summaryrefslogtreecommitdiff
path: root/bgproc.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-05-25 17:15:31 +0100
committerLars Wirzenius <liw@liw.fi>2011-05-25 17:15:31 +0100
commit818761a95e7701d9ca6c27c8f288b54312043dcc (patch)
treeadaff643619c1b9df71139b4af1807021556d933 /bgproc.py
parent927369b6d45b1e03cbc3a29610a2e035c7b77bd2 (diff)
downloadbgproc-818761a95e7701d9ca6c27c8f288b54312043dcc.tar.gz
Make enqueue_requests increment counter.
Diffstat (limited to 'bgproc.py')
-rw-r--r--bgproc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bgproc.py b/bgproc.py
index 10dd2f4..4c3ead8 100644
--- a/bgproc.py
+++ b/bgproc.py
@@ -23,6 +23,7 @@ class BackgroundProcessing(object):
def enqueue_request(self, request):
'''Put a request into queue, to be processed by workers whenever.'''
+ self.pending_requests += 1
def close_requests(self):
'''Signal workers that they can retire.