Hack for database monitoring job queue to wait until after forking to start

monitor thread.
This commit is contained in:
James Taylor
2007-02-21 20:16:35 +00:00
parent 67e1bb8846
commit 7285237f5b
+2
View File
@@ -62,6 +62,8 @@ class JobQueue( object ):
Continually iterate the waiting jobs, checking is each is ready to
run and dispatching if so.
"""
# HACK: Delay until after forking, we need a way to do post fork notification!!!
time.sleep( 10 )
while self.running:
# Pull all new jobs from the queue at once
new_jobs = []